- 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).
Our azure implementation:
#Prepare Analysis Configuration task
- task: SonarQubePrepare@5
displayName: SonarQube Prepare Analysis Configuration
#Run Code Analysis task
- task: SonarQubeAnalyze@5
displayName: SonarQube Code Analysis