src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Simplify/SimplifyChecker.py

branch
eric7
changeset 11145
d328a7b74fd8
parent 11142
2f0fb22c1d63
child 11147
dee6e106b4d3
equal deleted inserted replaced
11144:8c40c5e1ebe0 11145:d328a7b74fd8
122 @param code message code to check for 122 @param code message code to check for
123 @type str 123 @type str
124 @return flag indicating to ignore the given code 124 @return flag indicating to ignore the given code
125 @rtype bool 125 @rtype bool
126 """ 126 """
127 return ( 127 return code in self.__ignore or (
128 code in self.__ignore 128 code.startswith(self.__ignore) and not code.startswith(self.__select)
129 or (code.startswith(self.__ignore) and not code.startswith(self.__select))
130 ) 129 )
131 130
132 def __error(self, lineNumber, offset, code, *args): 131 def __error(self, lineNumber, offset, code, *args):
133 """ 132 """
134 Private method to record an issue. 133 Private method to record an issue.

eric ide

mercurial