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