The simple requirement is to be able to receive SonarQube quality failures when a running on a feature branch, before the code is merged in master. Instead, the feature branch passes and when it’s merged into master it fails. It seems like there’s a bug with the “new code” setting, and it doesn’t pick up the changes until they are merged.
“New Code” filter applied (for the last 30 days) - shows no issues:
Sorry for the late reply, I didn’t see your comment.
The branch was a fresh copy of master, no re-basing. Changes put on the branch then were ran through Sonar and it passed the quality gates. If I log in to Sonar I can see the issues with the branch but when the “New code” filter is applied there are no issues. Merging the branch back into master then and re-running Sonar on the master branch shows failures with the “New code” filter applied.
This happens on multiple occasions on different repositories.