SonarQube can't detect PR new bugs

which versions are you using
SonarQube: 8.98
Scanner: SonarScanner for MSBuild 5.13
how is SonarQube deployed: zip

When I scan the pull request, SonarQube tell me there is no bugs, even no new lines, like below:

But when I scan the original branch, it shows the bugs like below:

And below is the pull request detal, there is bug here

Attachment is the logs from jenkins
logs.txt (63.3 KB)


Your version is past EOL. You should upgrade to either the latest version or the current LTS at your earliest convenience. Your upgrade path is:

8.9.8 → 9.9 → 10.0 (last step optional)

You may find the Upgrade Guide and the LTS to LTS release upgrade notes for 8.9 to 9.9 helpful. If you have questions about upgrading, feel free to open a new thread for that here.

Regarding your question, PR analysis looks only at what changed in that PR. The Overall tab on a branch, on the other hand, reflects everything in the project. It’s quite natural that the two would be different.