-
-
Couldn't load subscription status.
- Fork 1.5k
Closed
Labels
area: outputRelated to issue outputRelated to issue outputbugSomething isn't workingSomething isn't working
Description
Welcome
- Yes, I'm using a binary release within 2 latest releases. Only such installations are supported.
- Yes, I've searched similar issues on GitHub and didn't find any.
- Yes, I've read the
typechecksection of the FAQ. - Yes, I've tried with the standalone linter if available (e.g., gocritic, go vet, etc.).
- I agree to follow this project's Code of Conduct
Description of the problem
Using the code-climate export format, there may be instances where the exported file does not have the correct severity type as defined by the Code Climate severity types:
[
{
"description": "gosec: G114: Use of net/http serve function that has no support for setting timeouts",
"check_name": "gosec",
"severity": "medium",
"fingerprint": "4909C824372D1A973F00BF10084672E6",
"location": { "path": "http.go", "lines": { "begin": 22 } }
},
{
"description": "revive: unused-parameter: parameter 'r' seems to be unused, consider removing or renaming it as _",
"check_name": "revive",
"severity": "warning",
"fingerprint": "D93243590B7D6E9AACE104BCD6F2737B",
"location": { "path": "http.go", "lines": { "begin": 12 } }
}
]Looking at Code Climate printer in the code base, it seems that the severity is emitted as-is when in fact there may be some mapping we could have done.
Version of golangci-lint
$ golangci-lint --version
golangci-lint has version v1.63.4 built with go1.23.2 from (unknown, modified: ?, mod sum: \"h1:bJQFQ3hSfUto597dkL7ipDzOxsGEpiWdLiZ359OWOBI=\") on (unknown)Configuration
$ golangci-lint run --verbose --print-issued-lines=false --out-format code-climate:golangci-lint.json,line-numberGo environment
$ go version && go env
go version go1.23.2 linux/amd64Validation
- Yes, I've included all information above (version, config, etc.).
Supporter
- I am a sponsor/backer through GitHub or OpenCollective
Metadata
Metadata
Assignees
Labels
area: outputRelated to issue outputRelated to issue outputbugSomething isn't workingSomething isn't working