sonar.go.gometalinter.reportPaths not reporting

We analyse GoLang code with SonarCloud through Jenkins and generate additional rules report that we then feed through the sonar.go.gometalinter.reportPaths property.

While the generated reports did find additional results there was no additional issues reported in SonarCloud. Are there additional steps to take so that the issues show up in the sonar reports?

Note that gometalinter is deprecated so we use golangci-lint which generates the same reports:


P.S.: use the #bug:fault sub-category if you’re hitting a specific crash/error , or the #bug:fp sub-category for rules-related behaviour

Hello @sodul,

Thanks for the feedback and sorry for the late reply.

When we realized that gometalinter was deprecated, we added the support of golangci-lint (see this ticket).

You should therefore use sonar.go.golangci-lint.reportPaths to import golangci-lint reports.

Please note that the report should be in checkstyle format by using --out-format checkstyle golangci-lint option. (see documentation)

Hope it helps,

Quentin

A post was split to a new topic: Change external issues language, type and severity

Glad to see that it did the trick!

Your follow up questions are not really related to the initial topic, I will put them in a separate thread.
Please try to keep one question/topic per thread, it will (hopefully) help to avoid having a message missed for too long, and enable to share the answer with other people!

A post was merged into an existing topic: Change external issues language, type and severity