220 @type int |
220 @type int |
221 @param docType type of the documentation strings (one of 'eric' or 'pep257') |
221 @param docType type of the documentation strings (one of 'eric' or 'pep257') |
222 @type str |
222 @type str |
223 """ |
223 """ |
224 self.__select = tuple(select) |
224 self.__select = tuple(select) |
225 self.__ignore = ("",) if select else tuple(ignore) |
225 self.__ignore = tuple(ignore) |
226 self.__expected = expected[:] |
226 self.__expected = expected[:] |
227 self.__repeat = repeat |
227 self.__repeat = repeat |
228 self.__maxLineLength = maxLineLength |
228 self.__maxLineLength = maxLineLength |
229 self.__docType = docType |
229 self.__docType = docType |
230 self.__filename = filename |
230 self.__filename = filename |
346 @param code message code to check for |
346 @param code message code to check for |
347 @type str |
347 @type str |
348 @return flag indicating to ignore the given code |
348 @return flag indicating to ignore the given code |
349 @rtype bool |
349 @rtype bool |
350 """ |
350 """ |
351 return code.startswith(self.__ignore) and not code.startswith(self.__select) |
351 return ( |
|
352 code in self.__ignore |
|
353 or (code.startswith(self.__ignore) and not code.startswith(self.__select)) |
|
354 ) |
352 |
355 |
353 def __error(self, lineNumber, offset, code, *args): |
356 def __error(self, lineNumber, offset, code, *args): |
354 """ |
357 """ |
355 Private method to record an issue. |
358 Private method to record an issue. |
356 |
359 |