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

branch
eric7
changeset 9325
8157eb19aba5
parent 9221
bf71ee032bb4
child 9653
e67609152c5e
equal deleted inserted replaced
9324:7f7f3e47b238 9325:8157eb19aba5
40 @param context security context object 40 @param context security context object
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 http_verbs = ("get", "options", "head", "post", "put", "patch", "delete") 45 httpVerbs = ("get", "options", "head", "post", "put", "patch", "delete")
46 if ( 46 if (
47 "requests" in context.callFunctionNameQual 47 "requests" in context.callFunctionNameQual
48 and context.callFunctionName in http_verbs 48 and context.callFunctionName in httpVerbs
49 and context.checkCallArgValue("verify", "False") 49 and context.checkCallArgValue("verify", "False")
50 ): 50 ):
51 reportError( 51 reportError(
52 context.getLinenoForCallArg("verify") - 1, 52 context.getLinenoForCallArg("verify") - 1,
53 context.getOffsetForCallArg("verify"), 53 context.getOffsetForCallArg("verify"),

eric ide

mercurial