We started using the Pull Request Decoration integration from GitLab lately.
At the moment we don’t enforce quality gate as we want to tune them based on statistics.
We are focusing on coverage for pull request, new issues, bugs, vulnerabilities
- We want to identify areas where it’s harder to enforce coverage e.g. areas in our code that are very hard to test, and we may want to enforce different set of rules.
- We want to identify patterns where developers are keener to write tests test (e.g. Bugs vs New code vs refactoring).
- Identify developers which avoid the sonar analyses and commit with issues.
I want to create weekly report around those topics based on Pull Request Decorations in Sonar on closed Pull Requests.
Looking at the Sonar API I have to say I got lost
Tried to explore
But still cannot figure out, I am also can’t find any documentation (apart from the https://sonar.com/api/webservices/list endpoint)
Any recommendations references or sample projects