New code value have set 1 day.
Scanned multiple PR’s:
4 PR’s has created, 3 PR’s has uncovered lines it’s fine but last PR it went to high and observed one file went 1 to 10 uncovered lines but we haven’t changed that file on those 4 PR’s.
Please help me to understand the difference between results.
We are using SonarQube 9.9 (Community Edition), and I need help understanding an issue we encountered with the PR analysis results.
Here’s the situation:
New Code period is set to 1 day.
We analyzed 4 PRs:
Three of the PRs have some uncovered lines, which are expected.
However, for the fourth PR, the number of uncovered lines increased significantly, with one file showing an increase from 1 to 10 uncovered lines.
The issue is that this file wasn’t modified in any of these 4 PRs.
Could someone help me understand why SonarQube is showing additional uncovered lines in a file that wasn’t modified? Is this related to the New Code period or could it be caused by something else?
Any insights or guidance would be much appreciated!
Analysis uses SCM metadata to understand what’s ‘new’ in a project and what has been changed in a PR. It’s likely that one or more of the prerequisites isn’t in place.