New Code results differ between main and feature branches

No, the issue is that the new code calculation is incorrect. Looking at the screenshots above, on the feature branch, it’s showing 0 new lines of code, and once merged, when this is the only difference, it’s showing 2 new lines of code. This is a small example, but we have had the same problem where the feature branch shows 0 new lines of code, and once merged shows 10s - 100s new lines. We have also upgraded to 8.9, and this issue is still occurring.

To add to this, in a similar reference branch situation as described above, i just created a new branch (so we have same commit heads) and ran a scan against. One with the passing QG is still green but the new branch fails. The new code coverage for the passing branch says 0 where as the one failing has 100+. The code is exactly the same.