src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/MiscellaneousChecker.py

branch
eric7
changeset 11145
d328a7b74fd8
parent 11142
2f0fb22c1d63
child 11147
dee6e106b4d3
equal deleted inserted replaced
11144:8c40c5e1ebe0 11145:d328a7b74fd8
483 @param code message code to check for 483 @param code message code to check for
484 @type str 484 @type str
485 @return flag indicating to ignore the given code 485 @return flag indicating to ignore the given code
486 @rtype bool 486 @rtype bool
487 """ 487 """
488 return ( 488 return code in self.__ignore or (
489 code in self.__ignore 489 code.startswith(self.__ignore) and not code.startswith(self.__select)
490 or (code.startswith(self.__ignore) and not code.startswith(self.__select))
491 ) 490 )
492 491
493 def __error(self, lineNumber, offset, code, *args): 492 def __error(self, lineNumber, offset, code, *args):
494 """ 493 """
495 Private method to record an issue. 494 Private method to record an issue.

eric ide

mercurial