Sonarqube Enterprise Edition Version 10.4 (build 87286)
Gradle Sonar Plugin 4.4.1.3373
Java 17
how is SonarQube deployed: Self Deployed
We have upgraded Sonarqube Enterprise Edition Version 9.9.1 (build 69595) to Enterprise Edition Version 10.4 (build 87286) and we see a lot of false positive issues like on screenshots below. Also SupressWarnings annotation and others are ignored now. Nothing changed from code point of view, or how we execute scans, only Sonarqube replaced.
SONAR-21575 Issue Suppression is not working correctly when Analyzer Download Optimization is enabled
It will be fixed in 10.5. In the meantime, you can disable the download optimization.
Regarding Lombok, can you provide a list of the relevant rules? I think we’ve already got a ticket in the backlog that’s relevant to your first screenshot:
SONARJAVA-4614 FP on S2974 if constructors are generated by Lombok
Thanks for the rule IDs. It’s not clear to me that the ticket in the thread you found covers all these rules, so I started looking at tickets for the specific rules. Just for S1118, I see a couple of closed FP tickets… and yet you still see a FP.
So now could you provide a text-format reproducer for each rule, please?