- Sonar: 10.2
- License: Enterprise licence
We newly attached sonar scan into our project using azure yaml pipeline. Implementation below.
But after the first run it reported a lot of comments to pull request.
" You have reached the maximum number of displayed issues (50) in this timeline. You can find the complete list of 5222 issues on SonarQube."
Is it possible to configure sonar commenting so that it only reports problems really caused by changes in that pull request?
We have set “new code” as code between versions and our version is every month. So now if any developer creates PR build sonar comments 5222 issues to every PR? (fortunately there is a limit of 50).
Thanks.
Our azure implementation:
Before build:
steps:
#Prepare Analysis Configuration task
- task: SonarQubePrepare@5
inputs:
SonarQube: ‘SonarQubeProject’
scannerMode: ‘MSBuild’
projectKey: ‘xas-border_cihla_AYpfUTWWefsutADW31’
displayName: SonarQube Prepare Analysis Configuration
After build:
steps:
#Run Code Analysis task
- task: SonarQubeAnalyze@5
displayName: SonarQube Code Analysis