In advance: This is not really a false-positive, rather a false-negative.
Comparing analysis results for the same projects in my old and new environment I’ve detected that the java rule squid:S1319 detect much less in the new environment without apparent reason.
- Old environment: SonarQube 5.6.7 + sonar-java-plugin-4.15.0.12310
- New environment: SonarQube 7.9.1 + sonar-java-plugin-5.14.0.18788
The source code of the project and the sonar-project.properties were exactly the same in both analysis.
This issues were correctly detected in old environment:
Sample A:
Sample B:
And, as you can see, in the new environment they were not detected anymore:
Sample A:
Sample B:
In fact, in some projects, the difference in the number of issues detected by the rule can be really significant.
Old environment:
New environment:
I could not find a pattern or an apparent reason for the lack of issues. ¿Some help or workaround about it?