Class DockerLintParser

  • All Implemented Interfaces:
    Serializable

    public class DockerLintParser
    extends JsonIssueParser
    A parser for dockerlint json output.

    Possible usage via docker is:

    <pre> docker run -it --rm -v $PWD:/root/ \ projectatomic/dockerfile-lint \ dockerfile_lint -j -f Dockerfile. </pre>
    Author:
    Andreas Mandel
    See Also:
    dockerlint, Serialized Form
    • Constructor Detail

      • DockerLintParser

        public DockerLintParser()
    • Method Detail

      • parseJsonObject

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