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

branch
eric7
changeset 11147
dee6e106b4d3
parent 11090
f5f5f5803935
--- a/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Security/Checks/assert.py	Sun Feb 23 12:42:47 2025 +0100
+++ b/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Security/Checks/assert.py	Mon Feb 24 15:11:18 2025 +0100
@@ -26,7 +26,7 @@
     """
     return {
         "Assert": [
-            (checkAssertUsed, ("S101",)),
+            (checkAssertUsed, ("S-101",)),
         ],
     }
 
@@ -42,4 +42,4 @@
     @param _config dictionary with configuration data (unused)
     @type dict
     """
-    reportError(context.node.lineno - 1, context.node.col_offset, "S101", "L", "H")
+    reportError(context.node.lineno - 1, context.node.col_offset, "S-101", "L", "H")

eric ide

mercurial