What we want is to solve sonar errors that appear after merge and not at comit/Mr analysis.
Several people had read all the doc releated to analysis or new code but it’s not clear, there is a lack of precise information.
There are some issues like Reduce the number of conditional operators (5) used in the expression (maximum allowed 3)
This issue has not been detected at commit and merge request analysis but after merge on reference branch.
This issue is detected on all new branch created from this reference branch (after merge).
Are other issues raised in the pull requests in question?
Can you share the code which didn’t raise this issue in the pull request compared to the one that did in the branch after it was merged? A screenshot would be fine here.
It sounds like maybe your New Code Period is being updated every analysis to only include the changes from the last analysis. How is your new code definition defined for the project?