src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Security/Checks/hashlibInsecureFunctions.py

branch
eric7
changeset 11147
dee6e106b4d3
parent 11136
437db2f032fd
--- a/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Security/Checks/hashlibInsecureFunctions.py	Sun Feb 23 12:42:47 2025 +0100
+++ b/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Security/Checks/hashlibInsecureFunctions.py	Mon Feb 24 15:11:18 2025 +0100
@@ -29,7 +29,7 @@
     """
     return {
         "Call": [
-            (checkHashlib, ("S331", "S332")),
+            (checkHashlib, ("S-331", "S-332")),
         ],
     }
 
@@ -62,7 +62,7 @@
                 reportError(
                     context.node.lineno - 1,
                     context.node.col_offset,
-                    "S332",
+                    "S-332",
                     "H",
                     "H",
                     func.upper(),
@@ -78,7 +78,7 @@
                 reportError(
                     context.node.lineno - 1,
                     context.node.col_offset,
-                    "S332",
+                    "S-332",
                     "H",
                     "H",
                     name.upper(),
@@ -114,7 +114,7 @@
             reportError(
                 context.node.lineno - 1,
                 context.node.col_offset,
-                "S331",
+                "S-331",
                 "M",
                 "H",
                 name.upper(),
@@ -126,7 +126,7 @@
             reportError(
                 context.node.lineno - 1,
                 context.node.col_offset,
-                "S331",
+                "S-331",
                 "M",
                 "H",
                 name.upper(),

eric ide

mercurial