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

branch
eric7
changeset 11147
dee6e106b4d3
parent 11090
f5f5f5803935
equal deleted inserted replaced
11146:59e04f7003e9 11147:dee6e106b4d3
24 list of codes 24 list of codes
25 @rtype dict 25 @rtype dict
26 """ 26 """
27 return { 27 return {
28 "Call": [ 28 "Call": [
29 (checkParamikoCalls, ("S601",)), 29 (checkParamikoCalls, ("S-601",)),
30 ], 30 ],
31 } 31 }
32 32
33 33
34 def checkParamikoCalls(reportError, context, _config): 34 def checkParamikoCalls(reportError, context, _config):
47 "exec_command" 47 "exec_command"
48 ]: 48 ]:
49 reportError( 49 reportError(
50 context.node.lineno - 1, 50 context.node.lineno - 1,
51 context.node.col_offset, 51 context.node.col_offset,
52 "S601", 52 "S-601",
53 "M", 53 "M",
54 "M", 54 "M",
55 ) 55 )

eric ide

mercurial