Done
Details
Details
Assignee
David Crossley
David CrossleyReporter
Julian Ladisch
Julian LadischPriority
Development Team
None
TestRail: Cases
Open TestRail: Cases
TestRail: Runs
Open TestRail: Runs
Created October 8, 2024 at 10:27 AM
Updated November 21, 2024 at 4:31 PM
Resolved November 21, 2024 at 4:31 PM
https://github.com/folio-org/.github/blob/v1.5.0/README-go.md suggests:
In contrast warns:
https://docs.sonarsource.com/sonarqube/latest/user-guide/issues/managing/#suppressing also warns:
Sonar’s Go code analysis doesn’t support a source code directive that suppresses only a single rule. This is a significant lack because it may hide other issues on that line that are relevant.
Sonar has only 44 Go rules: https://sonarcloud.io/organizations/folio-org/quality_profiles/show?name=Sonar+way&language=go
Sonar doesn’t have security rules.
Therefore Sonar for Go is not mature.
Other tools should be considered.
Other Go code analysis tools have many more rules and support rule specific source code directives, for example
https://github.com/securego/gosec?tab=readme-ov-file#annotating-code
https://golangci-lint.run/usage/false-positives/#nolint-directive
https://staticcheck.dev/docs/configuration/#ignoring-problems