- ALM used:
- CI system used:
- Languages of the repository
We are trying to integrate custom Checkstyle rules with one of our projects. The Checkstyle report is generated using maven in a Gitlab pipeline and it is successfully imported into SonarCloud. The problem is that in a small MR with one or two classes changed and a huge amount of code smells, the maintainability rating on new code remains A, and the debt ratio is 0.0%.
The issue is pretty clear when you use the “Measures” page, to filter out one concrete class showing:
Then if “show measures” → “show all measures” is used, the actual value that rating and debt rate should have are shown:
For some reason, those values are not included in the aggregation and then the quality gate ignores them.
The problem does not happen with code smells detected by internal sonar rules.
Thanks in advance