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

branch
eric7
changeset 11147
dee6e106b4d3
parent 11090
f5f5f5803935
--- a/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Security/Checks/tryExcept.py	Sun Feb 23 12:42:47 2025 +0100
+++ b/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Security/Checks/tryExcept.py	Mon Feb 24 15:11:18 2025 +0100
@@ -30,11 +30,11 @@
     """
     return {
         "ExceptHandler": [
-            (checkTryExceptPass, ("S110",)),
-            (checkTryExceptContinue, ("S112",)),
+            (checkTryExceptPass, ("S-110",)),
+            (checkTryExceptContinue, ("S-112",)),
         ],
         "Call": [
-            (checkContextlibSuppress, ("S113",)),
+            (checkContextlibSuppress, ("S-113",)),
         ],
     }
 
@@ -69,7 +69,7 @@
             reportError(
                 context.node.lineno - 1,
                 context.node.col_offset,
-                "S110",
+                "S-110",
                 "L",
                 "H",
             )
@@ -105,7 +105,7 @@
             reportError(
                 context.node.lineno - 1,
                 context.node.col_offset,
-                "S112",
+                "S-112",
                 "L",
                 "H",
             )
@@ -146,7 +146,7 @@
         reportError(
             context.node.lineno - 1,
             context.node.col_offset,
-            "S113",
+            "S-113",
             "L",
             "H",
         )

eric ide

mercurial