Support SARIF output (#539)

* SARIF support

* add sarif option to help text
This commit is contained in:
mrtc0
2020-11-02 17:13:53 +09:00
committed by GitHub
parent a4746e18e3
commit 0d4f1cb2cb
4 changed files with 232 additions and 1 deletions

View File

@@ -73,7 +73,7 @@ var (
flagIgnoreNoSec = flag.Bool("nosec", false, "Ignores #nosec comments when set")
// format output
flagFormat = flag.String("fmt", "text", "Set output format. Valid options are: json, yaml, csv, junit-xml, html, sonarqube, golint or text")
flagFormat = flag.String("fmt", "text", "Set output format. Valid options are: json, yaml, csv, junit-xml, html, sonarqube, golint, sarif or text")
// #nosec alternative tag
flagAlternativeNoSec = flag.String("nosec-tag", "", "Set an alternative string for #nosec. Some examples: #dontanalyze, #falsepositive")