False Positive Issues Reappearing on Newly Created Branch in SonarQube

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube Server / Community Build, Scanner, Plugin, and any relevant extension)
  • Ans: v2025.1.1
  • how is SonarQube deployed: zip, Docker, Helm
    Ans: Zip
  • what are you trying to achieve
    We want issues marked as “False Positive” on the dev branch to remain suppressed
    when scanning a newly created hotfix branch originating from the same code base,
    to avoid repeated manual intervention.
  • what have you tried so far to achieve this
    Marked false positives on the dev branch
    • Re-ran analysis on dev and confirmed correct results
    • Created a hotfix branch from dev
    • Ran analysis on hotfix
    • Observed that all previously marked false positives reappeared

Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!

Hi @SantoshKumar

upon the creation of a new branch the issues are synchronized from either the ‘main’ branch in Sonar, or the branch that you have defined as reference branch in Sonar. Details can be read here: Issue management solution | SonarQube Server | Sonar Documentation

Hope this helped.

Regards, Wiebke