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-188.8.131.5210
- New environment: SonarQube 7.9.1 + sonar-java-plugin-184.108.40.20688
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:
And, as you can see, in the new environment they were not detected anymore:
In fact, in some projects, the difference in the number of issues detected by the rule can be really significant.
I could not find a pattern or an apparent reason for the lack of issues. ¿Some help or workaround about it?