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
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:
- hadolint, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HadoLintParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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, parseJsonObject
-
Methods inherited from class edu.hm.hafner.analysis.IssueParser
equalsIgnoreCase, isXmlFile, parseFile
-
-
-
-
Method Detail
-
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
-
-