Klasse OTDockerLintParser

Alle implementierten Schnittstellen:
Serializable

public class OTDockerLintParser extends JsonIssueParser
A parser for ot-docker-linter json output.
Autor:
Abhishek Dubey
Siehe auch:
  • Konstruktordetails

    • OTDockerLintParser

      public OTDockerLintParser()
  • 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
    • parseJsonArray

      protected void parseJsonArray(Report report, org.json.JSONArray 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:
      parseJsonArray in Klasse JsonIssueParser
      Parameter:
      report - the report to fill
      jsonReport - the input JSON report given as JSON array
      issueBuilder - build to be used to create issues
    • parseJsonObject

      protected void parseJsonObject(Report report, org.json.JSONObject jsonIssue, 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
      jsonIssue - the input JSON report given as JSON object
      issueBuilder - build to be used to create issues