I ran into this issue as an extension of 'New Code' shows issues introduced on Reference Branch.
- Create a new project by doing a scan of an existing git repo on the master branch
- This isn’t required, but should put the system in a known state
- Set the “New Code” to reference the master branch
- This may or may not be relevant
- Scan master branch
- Make a new branch locally from the same commit as master
- Scan the new branch
- Make a new commit that adds issues on the new branch
- Scan the new branch
- This shows 6 new issues
- Switch back to the master branch
- Make a commit with an issue in a different file on the master branch
- Scan the master branch
- Merge the master branch into the new branch
- Scan the new branch
- Shows 10 issues (6 from new branch, 4 from master)
- Flag one new issues from the new branch as ‘won’t fix’
- Make a PR from the new branch to inc2
Preferred behavior: Shows the 5 issues that were left uncommented from the new branch
Expected behavior: (based on Dealing with False positives,wont fixes): Shows all 6 issues introduced in the new branch (including the one marked as ‘won’t fix’ in the branch)
Actual behavior: Shows 5 issues from the new branch, but the one that is missing is not the one marked as won’t fix.