INNER CODE UNIT · Python

startElement

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

    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:
            return True
        return False

    def handleError(self, attrs):
        err = Error(

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…