Hi again,
So looks like SonarCloud finds files that are not related to a Pull Requests as "new code" - #32 by Michael_Carter was a solution that worked for us too.
I’m still looking to understand
- Why does sonar-scanner prefer
refs/heads/developmentoverrefs/remotes/origin/development. In a CI environment, the local reference for a branch would always be stale unless that is explcitiyl checked out. - What impact could the gitlab merge commit have on finding the correct merge base.