Klasse SonarQubeParser

Alle implementierten Schnittstellen:
Serializable
Bekannte direkte Unterklassen:
SonarQubeDiffParser, SonarQubeIssuesParser

public abstract class SonarQubeParser extends JsonIssueParser
Base class for SonarQube parsers.
Autor:
Carles Capdevila
Siehe auch:
  • Konstruktordetails

    • SonarQubeParser

      public SonarQubeParser()
  • Methodendetails

    • accepts

      public boolean accepts(ReaderFactory readerFactory)
      Beschreibung aus Klasse kopiert: IssueParser
      Returns whether this parser accepts the specified file as valid input. Parsers may reject a file if it is in the wrong format to avoid exceptions during parsing.
      Setzt außer Kraft:
      accepts in Klasse JsonIssueParser
      Parameter:
      readerFactory - provides a reader to the reports
      Gibt zurück:
      true if this parser accepts this file as valid input, or false if the file could not be parsed by this parser
    • parseJsonObject

      protected void parseJsonObject(Report report, org.json.JSONObject jsonReport, IssueBuilder issueBuilder)
      Beschreibung aus Klasse kopiert: JsonIssueParser
      Parses the specified JSON object and populates the provided report with all issues.
      Setzt außer Kraft:
      parseJsonObject in Klasse JsonIssueParser
      Parameter:
      report - the report to fill
      jsonReport - the input JSON report given as JSON object
      issueBuilder - build to be used to create issues