I’ve a maven project with modules in java and one in typescript (angular 9.x). In the typescript analysis, I use tslint.
I’m using Sonarqube 8.2 with latest versions of plugins. I’ve configured it to push analysis results to gitlab merge request for feature branches.
Sometimes, the report (quality gate) is passed in the feature branch, then we are able to merge it. But after the merge, we have new issues in master. After analysis, we saw that the issue was already present in feature branch but was not detected.
On a feature branch the class has been detected as “new code” but with no issues. Then after merge and sonar analysis on master there is an issue java:S1066 in the same class in master. And the strange things is that happened on code not modified since more than 1 year.
And with another feature branch I got the problem with 2 issues in 2 differents classes that appears only on master. In this case, issues were from rule java:S1166.