--- a/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Security/Checks/injectionShell.py Sun Feb 23 12:42:47 2025 +0100 +++ b/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Security/Checks/injectionShell.py Mon Feb 24 15:11:18 2025 +0100 @@ -37,12 +37,12 @@ """ return { "Call": [ - (checkSubprocessPopenWithShell, ("S602",)), - (checkSubprocessPopenWithoutShell, ("S603",)), - (checkOtherFunctionWithShell, ("S604",)), - (checkStartProcessWithShell, ("S605",)), - (checkStartProcessWithNoShell, ("S606",)), - (checkStartProcessWithPartialPath, ("S607",)), + (checkSubprocessPopenWithShell, ("S-602",)), + (checkSubprocessPopenWithoutShell, ("S-603",)), + (checkOtherFunctionWithShell, ("S-604",)), + (checkStartProcessWithShell, ("S-605",)), + (checkStartProcessWithNoShell, ("S-606",)), + (checkStartProcessWithPartialPath, ("S-607",)), ], } @@ -122,7 +122,7 @@ reportError( context.getLinenoForCallArg("shell") - 1, context.getOffsetForCallArg("shell"), - "S602.L", + "S-602.L", sev, "H", ) @@ -130,7 +130,7 @@ reportError( context.getLinenoForCallArg("shell") - 1, context.getOffsetForCallArg("shell"), - "S602.H", + "S-602.H", sev, "H", ) @@ -157,7 +157,7 @@ reportError( context.node.lineno - 1, context.node.col_offset, - "S603", + "S-603", "L", "H", ) @@ -184,7 +184,7 @@ reportError( context.getLinenoForCallArg("shell") - 1, context.getOffsetForCallArg("shell"), - "S604", + "S-604", "M", "L", ) @@ -213,7 +213,7 @@ reportError( context.node.lineno - 1, context.node.col_offset, - "S605.L", + "S-605.L", sev, "H", ) @@ -221,7 +221,7 @@ reportError( context.node.lineno - 1, context.node.col_offset, - "S605.H", + "S-605.H", sev, "H", ) @@ -248,7 +248,7 @@ reportError( context.node.lineno - 1, context.node.col_offset, - "S606", + "S-606", "L", "M", ) @@ -293,7 +293,7 @@ reportError( context.node.lineno - 1, context.node.col_offset, - "S607", + "S-607", "L", "H", )