mc1arke / sonarqube-community-branch-plugin

A plugin that allows branch analysis and pull request decoration in the Community version of Sonarqube
GNU Lesser General Public License v3.0
2.26k stars 526 forks source link

Switch to new Software Quality metrics when decorating Pull Requests #995

Closed mc1arke closed 1 week ago

mc1arke commented 1 week ago

Sonarqube has deprecated the previous Bug, Vulnerability, and Code Smell rule types, instead replacing them with Software Quality attributes and a potential rating against multiple attributes for a single rule. As the rule types were only being used to report individual issues in the Gitlab and Azure decorators, and for creating the overall summary message to match what was previously shown on the Pull Request's overview within Sonarqube, the types have been removed from all decoration. Where summary messages are used in a decorator they now show equivalent information as is shown on the Pull Request overview page in Sonarqube - New issues, accepted issues, resolved issues, coverage, duplications, and security hotspot metrics, plus any failed quality gate conditions. Where the issue rating is reported in decoration, the highest rating across all the Software Qualities assigned to a rule is used in the new setup. The individual issues posted on Gitlab and Azure decorations have been simplified to only contain the message from the finding and the link to view the finding in Sonarqube, rather than including attributes about resolution time and issue type which are unlikely to have been useful to most users.

sonarcloud[bot] commented 1 week ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
92.9% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarQube Cloud