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

branch
eric7
changeset 11147
dee6e106b4d3
parent 11090
f5f5f5803935
equal deleted inserted replaced
11146:59e04f7003e9 11147:dee6e106b4d3
26 list of codes 26 list of codes
27 @rtype dict 27 @rtype dict
28 """ 28 """
29 return { 29 return {
30 "Call": [ 30 "Call": [
31 (checkLinuxCommandsWildcardInjection, ("S609",)), 31 (checkLinuxCommandsWildcardInjection, ("S-609",)),
32 ], 32 ],
33 } 33 }
34 34
35 35
36 def checkLinuxCommandsWildcardInjection(reportError, context, config): 36 def checkLinuxCommandsWildcardInjection(reportError, context, config):
82 if offset < 0: 82 if offset < 0:
83 offset = context.node.col_offset 83 offset = context.node.col_offset
84 reportError( 84 reportError(
85 lineNo - 1, 85 lineNo - 1,
86 offset, 86 offset,
87 "S609", 87 "S-609",
88 "H", 88 "H",
89 "M", 89 "M",
90 context.callFunctionNameQual, 90 context.callFunctionNameQual,
91 ) 91 )

eric ide

mercurial