src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Complexity/ComplexityChecker.py

branch
eric7
changeset 11145
d328a7b74fd8
parent 11142
2f0fb22c1d63
child 11147
dee6e106b4d3
equal deleted inserted replaced
11144:8c40c5e1ebe0 11145:d328a7b74fd8
77 @param code message code to check for 77 @param code message code to check for
78 @type str 78 @type str
79 @return flag indicating to ignore the given code 79 @return flag indicating to ignore the given code
80 @rtype bool 80 @rtype bool
81 """ 81 """
82 return ( 82 return code in self.__ignore or (
83 code in self.__ignore 83 code.startswith(self.__ignore) and not code.startswith(self.__select)
84 or (code.startswith(self.__ignore) and not code.startswith(self.__select))
85 ) 84 )
86 85
87 def __error(self, lineNumber, offset, code, *args): 86 def __error(self, lineNumber, offset, code, *args):
88 """ 87 """
89 Private method to record an issue. 88 Private method to record an issue.

eric ide

mercurial