tl;dr We’ve configured quality gates as status checks on PR’s in Azure DevOps. This stops developers from merging code that doesn’t pass the quality gate. It also adds a lot of comments to each PR. We’re looking to keep the gate, but disable the comments.
Must-share information (formatted with Markdown):
- which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
- SonarQube Developer Edition version 10.3.0.82913
- SonarScanner for MSBuild 5.15
- Scan running in Azure DevOps Services (SonarQube Prepare 5.19.1, SonarQube Analyze 5.20.0, SonarQube Publish 5.6.1)
- how is SonarQube deployed: zip, Docker, Helm
- Sonar was deployed to AKS via Helm
- what are you trying to achieve
- Configure quality gates as an Azure DevOps status check WITHOUT automatically commenting on pull requests
- what have you tried so far to achieve this
- We’ve set up the Azure DevOps link in SonarQube, which works successfully. During a PR build, the scan runs as expected. We’ve set this up as a status check on Azure DevOps to prevent merging code that failed our quality gate. All of this works great, but since we’ve configured all of this, Sonar automatically adds comments to every PR it scans. We’re looking for a way to keep the gate in place, but disable commenting on the PR’s, as that information can be found in the Sonar scan and creates a lot of noise on the PR.
Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!