How to merge branch analysis into master?

Hi Ann,
First of all, thanks a million for taking the time to help me with this! But I’m not sure that’s what I want…

I want the issues I mark as FP/WF in a branch to disappear from master when I merge this branch back.

Maybe my workflow is not the correct one (remember I’m a newbie to SonarQube, sorry):

  1. I ran a sonar-scanner in the master-branch and got some issues.
  2. I create a git branch to fix those issues (let’s call it work-branch).
  3. I run a sonar-scanner in the work-branch
  4. I mark some issues as FP/WF
  5. I merge my work-branch into the master-branch
  6. I run a sonar-scanner in the master-branch

The issues marked as FP/WF in the work-branch are still present in the master-branch; I don’t expect these issues to be shown again, they are already fixed.

Once again, thanks a lot for your help!

2 Likes