SonarScanner placing comments about untouched code

Hello, we use SonarQube developer edition hosted in k8s with SonarScanner for Azure DevOps.
We have Pull Request Annotations enabled. What we notice is that for some projects, it places comments on the PR about only the code that has been touched in that PR (which is what we expect). But for other projects, it places comments on a PR about files that haven’t been touched in that PR.

Is this a bug or is there some logic here that we’re missing?

Hi,

This is going to be about the SCM metadata available to analysis in those other projects. Make sure the prerequisites are in place.

 
HTH,
Ann