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

branch
server
changeset 10704
27d21e5163b8
parent 10683
779cda568acb
child 11090
f5f5f5803935
equal deleted inserted replaced
10680:306373ccf8fd 10704:27d21e5163b8
31 (checkSshNoHostKeyVerification, ("S507",)), 31 (checkSshNoHostKeyVerification, ("S507",)),
32 ], 32 ],
33 } 33 }
34 34
35 35
36 def checkSshNoHostKeyVerification(reportError, context, config): # noqa: U100 36 def checkSshNoHostKeyVerification(reportError, context, _config):
37 """ 37 """
38 Function to check for use of mako templates. 38 Function to check for use of mako templates.
39 39
40 @param reportError function to be used to report errors 40 @param reportError function to be used to report errors
41 @type func 41 @type func
42 @param context security context object 42 @param context security context object
43 @type SecurityContext 43 @type SecurityContext
44 @param config dictionary with configuration data 44 @param _config dictionary with configuration data (unused)
45 @type dict 45 @type dict
46 """ 46 """
47 if ( 47 if (
48 context.isModuleImportedLike("paramiko") 48 context.isModuleImportedLike("paramiko")
49 and context.callFunctionName == "set_missing_host_key_policy" 49 and context.callFunctionName == "set_missing_host_key_policy"

eric ide

mercurial