src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Security/Checks/sshNoHostKeyVerification.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 (checkSshNoHostKeyVerification, ("S507",)), 31 (checkSshNoHostKeyVerification, ("S-507",)),
32 ], 32 ],
33 } 33 }
34 34
35 35
36 def checkSshNoHostKeyVerification(reportError, context, _config): 36 def checkSshNoHostKeyVerification(reportError, context, _config):
64 64
65 if policyArgumentValue in ["AutoAddPolicy", "WarningPolicy"]: 65 if policyArgumentValue in ["AutoAddPolicy", "WarningPolicy"]:
66 reportError( 66 reportError(
67 context.node.lineno - 1, 67 context.node.lineno - 1,
68 context.node.col_offset, 68 context.node.col_offset,
69 "S507", 69 "S-507",
70 "H", 70 "H",
71 "M", 71 "M",
72 ) 72 )

eric ide

mercurial