SonarQube does not find new bugs in PRs, until they are merged to master

do you have a link that explains how to do this?

Hi @Laurie_Dening,

Welcome to the community!

You’re looking for the branch analysis docs.

 
HTH,
Ann

Please see my previous comment about this workaround:

Hi,
Have you solved this problem? I also encountered the same bug, thanks.

Hi Wang,

Unfortunately, Sonar decided not to fix this issue. They call it a feature and the request to solve it is open for an extremely long time.
May I ask you to vote for fixing this issue here (and mark it as critical) https://portal.productboard.com/sonarsource/3-sonarqube/c/171-prs-show-issues-that-will-be-fixed-by-the-merge?

Thanks for the suggestion, I have marked it as critica