--- a/eric6/Plugins/CheckerPlugins/CodeStyleChecker/Security/Checks/certificateValidation.py Sun Apr 11 16:53:48 2021 +0200 +++ b/eric6/Plugins/CheckerPlugins/CodeStyleChecker/Security/Checks/certificateValidation.py Sun Apr 11 18:45:10 2021 +0200 @@ -45,13 +45,13 @@ http_verbs = ('get', 'options', 'head', 'post', 'put', 'patch', 'delete') if ( 'requests' in context.callFunctionNameQual and - context.callFunctionName in http_verbs + context.callFunctionName in http_verbs and + context.checkCallArgValue('verify', 'False') ): - if context.checkCallArgValue('verify', 'False'): - reportError( - context.getLinenoForCallArg('verify') - 1, - context.getOffsetForCallArg('verify'), - "S501", - "H", - "H" - ) + reportError( + context.getLinenoForCallArg('verify') - 1, + context.getOffsetForCallArg('verify'), + "S501", + "H", + "H" + )