sonar: exclude tests from complexity and parameter rules, raise the S3776 threshold #65
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
First SonarQube scan of main reports 209 issues. 144 are go:S3776 cognitive complexity above 15, of which 94 sit in _test.go files, and 5 of the 14 go:S107 too-many-parameters findings are in tests. Table-driven tests are complex by design, so the signal is noise there. Proposal: add sonar.issue.ignore.multicriteria entries in sonar-project.properties scoping go:S3776 and go:S107 to non-test files, and raise the S3776 threshold from 15 to 25 in the Go quality profile on the server, which leaves roughly 37 production functions to refactor. Also set the quality gate to new-code conditions so main stays green while legacy debt is worked down. Part of the SonarQube cleanup tracking issue.
done.