Skip to content

Commit

Permalink
Edited README and help text.
Browse files Browse the repository at this point in the history
  • Loading branch information
wongherlung committed Jan 27, 2018
1 parent 2c1a0b8 commit 1346bd3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -104,7 +104,7 @@ $ gas -nosec=true ./...

### Output formats

Gas currently supports text, json and csv output formats. By default
Gas currently supports text, json, csv and JUnit XML output formats. By default
results will be reported to stdout, but can also be written to an output
file. The output format is controlled by the '-fmt' flag, and the output file is controlled by the '-out' flag as follows:

Expand Down
2 changes: 1 addition & 1 deletion cmd/gas/main.go
Expand Up @@ -59,7 +59,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, csv, html, or text")
flagFormat = flag.String("fmt", "text", "Set output format. Valid options are: json, csv, junit-xml, html, or text")

// output file
flagOutput = flag.String("out", "", "Set output file for results")
Expand Down
6 changes: 3 additions & 3 deletions output/formatter.go
Expand Up @@ -74,8 +74,8 @@ func CreateReport(w io.Writer, format string, issues []*gas.Issue, metrics *gas.
err = reportJSON(w, data)
case "csv":
err = reportCSV(w, data)
case "xml":
err = reportXML(w, data)
case "junit-xml":
err = reportJUnitXML(w, data)
case "html":
err = reportFromHTMLTemplate(w, html, data)
case "text":
Expand Down Expand Up @@ -118,7 +118,7 @@ func reportCSV(w io.Writer, data *reportInfo) error {
return nil
}

func reportXML(w io.Writer, data *reportInfo) error {
func reportJUnitXML(w io.Writer, data *reportInfo) error {
groupedData := groupDataByRules(data)
junitXMLStruct := createJUnitXMLStruct(groupedData)

Expand Down

0 comments on commit 1346bd3

Please sign in to comment.