You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cmd/gosec/main.go
+7-10
Original file line number
Diff line number
Diff line change
@@ -120,6 +120,9 @@ var (
120
120
// stdout the results as well as write it in the output file
121
121
flagStdOut=flag.Bool("stdout", false, "Stdout the results as well as write it in the output file")
122
122
123
+
//print the text report with color, this is enabled by default
124
+
flagColor=flag.Bool("color", true, "Prints the text format report with colorization when it goes in the stdout")
125
+
123
126
// overrides the output format when stdout the results while saving them in the output file
124
127
flagVerbose=flag.String("verbose", "", "Overrides the output format when stdout the results while saving them in the output file.\nValid options are: json, yaml, csv, junit-xml, html, sonarqube, golint, sarif or text")
0 commit comments