INNER CODE UNIT · Python

CheckStyleHandler

intermine/intermine · config/lib/parse_checkstyle_report.py:19

class CheckStyleHandler(ContentHandler):
    def __init__(self):
        self.errors = defaultdict(list)
        self.currentFile = None

    def startElement(self, name, attrs):
        if name == "file":
            self.currentFile = attrs.get("name")
        elif name == "error":
            self.handleError(attrs)

    # TODO - compile the classes so we don't have to do this.
    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:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…