Skip to content

Commit 1346bd3

Browse files
committed
Edited README and help text.
1 parent 2c1a0b8 commit 1346bd3

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ $ gas -nosec=true ./...
104104

105105
### Output formats
106106

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

cmd/gas/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ var (
5959
flagIgnoreNoSec = flag.Bool("nosec", false, "Ignores #nosec comments when set")
6060

6161
// format output
62-
flagFormat = flag.String("fmt", "text", "Set output format. Valid options are: json, csv, html, or text")
62+
flagFormat = flag.String("fmt", "text", "Set output format. Valid options are: json, csv, junit-xml, html, or text")
6363

6464
// output file
6565
flagOutput = flag.String("out", "", "Set output file for results")

output/formatter.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ func CreateReport(w io.Writer, format string, issues []*gas.Issue, metrics *gas.
7474
err = reportJSON(w, data)
7575
case "csv":
7676
err = reportCSV(w, data)
77-
case "xml":
78-
err = reportXML(w, data)
77+
case "junit-xml":
78+
err = reportJUnitXML(w, data)
7979
case "html":
8080
err = reportFromHTMLTemplate(w, html, data)
8181
case "text":
@@ -118,7 +118,7 @@ func reportCSV(w io.Writer, data *reportInfo) error {
118118
return nil
119119
}
120120

121-
func reportXML(w io.Writer, data *reportInfo) error {
121+
func reportJUnitXML(w io.Writer, data *reportInfo) error {
122122
groupedData := groupDataByRules(data)
123123
junitXMLStruct := createJUnitXMLStruct(groupedData)
124124

0 commit comments

Comments
 (0)