src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/PathLib/PathlibChecker.py

branch
eric7
changeset 11145
d328a7b74fd8
parent 11142
2f0fb22c1d63
child 11147
dee6e106b4d3
equal deleted inserted replaced
11144:8c40c5e1ebe0 11145:d328a7b74fd8
154 @param code message code to check for 154 @param code message code to check for
155 @type str 155 @type str
156 @return flag indicating to ignore the given code 156 @return flag indicating to ignore the given code
157 @rtype bool 157 @rtype bool
158 """ 158 """
159 return ( 159 return code in self.__ignore or (
160 code in self.__ignore 160 code.startswith(self.__ignore) and not code.startswith(self.__select)
161 or (code.startswith(self.__ignore) and not code.startswith(self.__select))
162 ) 161 )
163 162
164 def __error(self, lineNumber, offset, code, *args): 163 def __error(self, lineNumber, offset, code, *args):
165 """ 164 """
166 Private method to record an issue. 165 Private method to record an issue.

eric ide

mercurial