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
**Note:** gosec generates the [generic issue import format](https://docs.sonarqube.org/latest/analysis/generic-issue/) for SonarQube, and a report has to be imported into SonarQube using `sonar.externalIssuesReportPaths=path/to/gosec-report.json`.
Copy file name to clipboardExpand all lines: cmd/gosec/main.go
+51-20
Original file line number
Diff line number
Diff line change
@@ -117,6 +117,12 @@ var (
117
117
// print version and quit with exit code 0
118
118
flagVersion=flag.Bool("version", false, "Print version and quit with exit code 0")
119
119
120
+
// stdout the results as well as write it in the output file
121
+
flagStdOut=flag.Bool("stdout", false, "Stdout the results as well as write it in the output file")
122
+
123
+
// overrides the output format when stdout the results while saving them in the output file
124
+
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