Closed Zxilly closed 3 months ago
There is no severity convention inside golangci-lint but you can override or define your own inside the severity
section.
https://golangci-lint.run/usage/configuration/#severity-configuration
I'm not familiar with the golangci lint codebase, but I was wondering if an e2e test exists? Maybe we can add to these tests for sarif and we can validate the output json file with a json schema.
we don't need e2e to validate the output, and to be honest, I was thinking of adding a test about that. But those tests will not be more useful than the current tests.
https://docs.oasis-open.org/sarif/sarif/v2.1.0/errata01/os/sarif-v2.1.0-errata01-os-complete.html#_Toc141790898
level can only be
none, note, warning, error
, some linter likegosec
may report something likehigh
For real-world error, see https://github.com/Zxilly/go-size-analyzer/actions/runs/9586342361/job/26434117667