We have a few follow up questions though:
- Is it possible to tie the reported issues to the GoLang language? Right now they are not tied to anything and we can’t find a way to run reports on these issues.
- Is it possible to change the type of issue from Bug to Code Smell?
- Is it possible to change the criticality level, per report type. For example we would want to set the criticality golangci-lint:deadcode to be different to the criticality of golangci-lint:errcheck.
For assigning to the language we suppose that’s something that need to be ‘updated’ in Sonar itself, or at least the GoLang plugin.
For the type and criticality, since the
golangci-lint rules are not listed under the rules management interface maybe that is something that can be done by massaging the check style reports?
<error column="3" line="75" message="SA4006: this value of `cerr` is never used" severity="error" source="staticcheck"/>
We could not find any documentation on how Sonar interprets the tags and severity of the checkstyle reports or if everything is always set to Bug/Major.