Stop sonarcloud from spamming comments for each finding in our pull requests

We are using azure pipelines to integrate sonarcloud. We’ve added the prepare, analyse and publish tasks for PR builds and would like to use a quality gate for pull requests. This all seems to work fine, however, our pull requests now get spammed with comment about each and every issue that sonarcloud finds in the PR changes. Furthermore, sonarcloud creates these comments for each and every push to the PR (which triggers a build). In the project settings under pull requests, I don’t even have a provider specified. What is the way to avoid sonarcloud from spamming our pull requests? Ideally, I would want sonarcloud to add 1 comment stating how many code smells etc. were found.

Hello @PaulVrugt !

Thanks for reaching us :wave:

I’ll attempt to reproduce the behavior you are describing to understand better what might be the issue here. In the meantime, feel free to add any extra information you consider that helps me to observe the problems you described.

I’ll keep you posted.

Hello,

I found out that when I enable PR integration for azure devops and set a bogus PAT, it stops making comments. Ideally we would like the integration to simply post 1 comment with a summary, but that only seems possible with github for some reason.

This workaround works for us now, but it seems very strange that the integration posts comments on the PR without PR integration enabled