281 @type bool |
281 @type bool |
282 @param args dictionary of arguments for the miscellaneous checks |
282 @param args dictionary of arguments for the miscellaneous checks |
283 @type dict |
283 @type dict |
284 """ |
284 """ |
285 self.__select = tuple(select) |
285 self.__select = tuple(select) |
286 self.__ignore = ("",) if select else tuple(ignore) |
286 self.__ignore = tuple(ignore) |
287 self.__expected = expected[:] |
287 self.__expected = expected[:] |
288 self.__repeat = repeat |
288 self.__repeat = repeat |
289 self.__filename = filename |
289 self.__filename = filename |
290 self.__source = source[:] |
290 self.__source = source[:] |
291 self.__tree = copy.deepcopy(tree) |
291 self.__tree = copy.deepcopy(tree) |
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 code.startswith(self.__ignore) and not code.startswith(self.__select) |
488 return ( |
|
489 code in self.__ignore |
|
490 or (code.startswith(self.__ignore) and not code.startswith(self.__select)) |
|
491 ) |
489 |
492 |
490 def __error(self, lineNumber, offset, code, *args): |
493 def __error(self, lineNumber, offset, code, *args): |
491 """ |
494 """ |
492 Private method to record an issue. |
495 Private method to record an issue. |
493 |
496 |