Using the developer edition of SonarQube 7.7 and having the new code period set to previous_version, periodically major rule violations slip through pull requests. The quality gate is set to maintainability of A on new code which should fail analysis on major violations. Drilling down in the rating and code, the lines of new code calculation is correct and highlighted in yellow which normally denotes the new code. Also the error is identified as part of that new code showing the major violation.
Is there a way to prevent these from slipping from the short lived branch into the long lived branch.