Class HadoLintParser

All Implemented Interfaces:
Serializable

public class HadoLintParser extends JsonIssueParser
A parser for hadolint json output.

Possible usage via docker is:

<pre> docker run --rm -i hadolint/hadolint hadolint -f json - < Dockerfile | jq. </pre>
Author:
Andreas Mandel
See Also:
  • Constructor Details

    • HadoLintParser

      public HadoLintParser()
  • Method Details

    • parseJsonArray

      protected void parseJsonArray(Report report, org.json.JSONArray jsonReport, IssueBuilder issueBuilder)
      Description copied from class: JsonIssueParser
      Parses the specified JSON object and populates the provided report with all issues.
      Overrides:
      parseJsonArray in class JsonIssueParser
      Parameters:
      report - the report to fill
      jsonReport - the input JSON report given as JSON array
      issueBuilder - build to be used to create issues