eric6/Plugins/CheckerPlugins/CodeStyleChecker/Security/Checks/injectionParamiko.py

branch
maintenance
changeset 8273
698ae46f40a4
parent 8222
5994b80b8760
equal deleted inserted replaced
8190:fb0ef164f536 8273:698ae46f40a4
41 @type SecurityContext 41 @type SecurityContext
42 @param config dictionary with configuration data 42 @param config dictionary with configuration data
43 @type dict 43 @type dict
44 """ 44 """
45 for module in ['paramiko']: 45 for module in ['paramiko']:
46 if context.isModuleImportedLike(module): 46 if (
47 if context.callFunctionName in ['exec_command']: 47 context.isModuleImportedLike(module) and
48 reportError( 48 context.callFunctionName in ['exec_command']
49 context.node.lineno - 1, 49 ):
50 context.node.col_offset, 50 reportError(
51 "S601", 51 context.node.lineno - 1,
52 "M", 52 context.node.col_offset,
53 "M", 53 "S601",
54 ) 54 "M",
55 "M",
56 )

eric ide

mercurial