Closed lnshi closed 6 years ago
You're missing the -fmt=csv
argument.
Sorry, add the -fmt=csv to the command line or the config file?
Also how come if i didn't add that exclude argument for gosec everything is working properly without -fmt=csv?
On Thu, 6 Sep 2018 at 18:05, Alec Thomas notifications@github.com wrote:
Closed #529 https://github.com/alecthomas/gometalinter/issues/529.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/alecthomas/gometalinter/issues/529#event-1829988367, or mute the thread https://github.com/notifications/unsubscribe-auth/AXcQEuKqAb94nrshiieYXhcNsO6jn1FSks5uYPNcgaJpZM4WcjFY .
You add it to the config Command
.
What that does is override this line: https://github.com/alecthomas/gometalinter/blob/2b0b5f3/linters.go#L235.
Omitting it changes the output format, which makes it impossible for gometalinter to parse the output.
Verified, solved, thank u very much.
My original
.gometalinter.json
when i run i can see some expected output like below:
I tried to exclude the rule
G501
(G501: Import blacklist: crypto/md5) for gosec, so i changed my.gometalinter.json
to:which when i run, all the output are gone, not only the checks for
G501
, also those checks forG104
(Errors unhandled) are gone, which is incorrect behaviours.but when i run
gometalinter --debug
, i can see below output related togosec
, which looks ok ....What am missing? Or this is a bug? Pls help.