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

branch
eric7
changeset 11147
dee6e106b4d3
parent 11090
f5f5f5803935
--- a/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Security/Checks/generalHardcodedPassword.py	Sun Feb 23 12:42:47 2025 +0100
+++ b/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Security/Checks/generalHardcodedPassword.py	Mon Feb 24 15:11:18 2025 +0100
@@ -34,13 +34,13 @@
     """
     return {
         "Str": [
-            (checkHardcodedPasswordAsString, ("S105",)),
+            (checkHardcodedPasswordAsString, ("S-105",)),
         ],
         "Call": [
-            (checkHardcodedPasswordAsFunctionArg, ("S106",)),
+            (checkHardcodedPasswordAsFunctionArg, ("S-106",)),
         ],
         "FunctionDef": [
-            (checkHardcodedPasswordAsDefault, ("S107",)),
+            (checkHardcodedPasswordAsDefault, ("S-107",)),
         ],
     }
 
@@ -64,7 +64,7 @@
                 reportError(
                     context.node.lineno - 1,
                     context.node.col_offset,
-                    "S105",
+                    "S-105",
                     "L",
                     "M",
                     node.value,
@@ -80,7 +80,7 @@
             reportError(
                 context.node.lineno - 1,
                 context.node.col_offset,
-                "S105",
+                "S-105",
                 "L",
                 "M",
                 assign.value.value,
@@ -97,7 +97,7 @@
             reportError(
                 context.node.lineno - 1,
                 context.node.col_offset,
-                "S105",
+                "S-105",
                 "L",
                 "M",
                 comp.comparators[0].s,
@@ -121,7 +121,7 @@
             reportError(
                 context.node.lineno - 1,
                 context.node.col_offset,
-                "S106",
+                "S-106",
                 "L",
                 "M",
                 kw.value.value,
@@ -155,7 +155,7 @@
             reportError(
                 context.node.lineno - 1,
                 context.node.col_offset,
-                "S107",
+                "S-107",
                 "L",
                 "M",
                 val.value,

eric ide

mercurial