INNER CODE UNIT · Python
can_ignore
intermine/intermine · config/lib/parse_checkstyle_report.py:31
def can_ignore(self, err):
if "Unable to get class information" in err.message:
return True
if "Redundant throws" in err.message:
return True
if "Unused @throws tag" in err.message:
return True
return False
def handleError(self, attrs):
err = Error(
attrs.get("severity"),
attrs.get("line"),
attrs.get("column"),
attrs.get("message"),
)
if not self.can_ignore(err):
self.errors[self.currentFile].append(err)