-
-
Notifications
You must be signed in to change notification settings - Fork 669
Closed
Description
Summary
The -fmt flag does not work when the results are printed to stdout by default.
Seems like we can only get the format we want on stdout only when we run gosec -out output.json -stdout -verbose json ./.... I suspect that a8b633f changed the behavior.
Steps to reproduce the behavior
Run gosec -fmt json ./....
gosec version
v2.8.0
Go version (output of 'go version')
go version go1.14.1 linux/amd64
Operating system / Environment
Ubuntu 20.04
Expected behavior
A JSON object will be printed out on stdout.
Actual behavior
The text output is printed to stdout.
Metadata
Metadata
Assignees
Labels
No labels