Package edu.hm.hafner.analysis.parser
Class DockerLintParser
java.lang.Object
edu.hm.hafner.analysis.IssueParser
edu.hm.hafner.analysis.parser.JsonIssueParser
edu.hm.hafner.analysis.parser.DockerLintParser
- All Implemented Interfaces:
Serializable
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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidparseJsonObject(Report report, org.json.JSONObject jsonReport, IssueBuilder issueBuilder) Parses the specified JSON object and populates the provided report with all issues.Methods inherited from class edu.hm.hafner.analysis.parser.JsonIssueParser
accepts, parse, parseJsonArrayMethods inherited from class edu.hm.hafner.analysis.IssueParser
equalsIgnoreCase, isXmlFile, parseFile
-
Constructor Details
-
DockerLintParser
public DockerLintParser()
-
-
Method Details
-
parseJsonObject
protected void parseJsonObject(Report report, org.json.JSONObject jsonReport, IssueBuilder issueBuilder) Description copied from class:JsonIssueParserParses the specified JSON object and populates the provided report with all issues.- Overrides:
parseJsonObjectin classJsonIssueParser- Parameters:
report- the report to filljsonReport- the input JSON report given as JSON objectissueBuilder- build to be used to create issues
-