src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Security/SecurityChecker.py

branch
eric7
changeset 11145
d328a7b74fd8
parent 11142
2f0fb22c1d63
child 11147
dee6e106b4d3
equal deleted inserted replaced
11144:8c40c5e1ebe0 11145:d328a7b74fd8
169 @param code message code to check for 169 @param code message code to check for
170 @type str 170 @type str
171 @return flag indicating to ignore the given code 171 @return flag indicating to ignore the given code
172 @rtype bool 172 @rtype bool
173 """ 173 """
174 return ( 174 return code in self.__ignore or (
175 code in self.__ignore 175 code.startswith(self.__ignore) and not code.startswith(self.__select)
176 or (code.startswith(self.__ignore) and not code.startswith(self.__select))
177 ) 176 )
178 177
179 def reportError(self, lineNumber, offset, code, severity, confidence, *args): 178 def reportError(self, lineNumber, offset, code, severity, confidence, *args):
180 """ 179 """
181 Public method to record an issue. 180 Public method to record an issue.

eric ide

mercurial