We are experiencing unexpected behavior with SonarQube branch analysis.
Scenario:
We scanned the test branch, and several issues were reported.
Later, we fixed some of those issues in the master branch and ran the SonarQube scan again for master.
After that, we triggered a new scan again for the test branch.
Now SonarQube is showing many issues again that were already scanned earlier, and the issue counts seem inconsistent.
Questions:
Why are previously scanned issues appearing again when re-running the analysis on the test branch?
Does SonarQube reset issue tracking when scanning different branches?
Is there any configuration required to maintain issue history between branch scans?
Environment Details:
SonarQube Version: Community EditionVersion 10.4.1 (build 88267)