The java analyzer plugin provided in SonarQube before 8.X, was filtering issues of all other plugin targeting the java language. It was not intentional, from the java analyzer plugin point of view, but users were able to filter rules like:
Since SonarQube 8.X, the java analyzer plugin only filters its own issues and issues from its custom rules and not any more issues from other plugins like javasecurity or findsecbugs.
Note
This topic is related to @SuppressWarnings are not honored by the SonarQube 7.9 anymore
But the impact on SonarQube 7.9 LTS was considered as regression and the topic has been resolved by a bug fix release 6.3.2 of the java analyzer.
By contrast, this topic is about SonarQube 8.X and the problem is not resolved.
Thank you for the information, I faced with the same problem with SonarQube 8.3.1. Can we expect a solution in the near future for SonarQube 8.x? Will there be a ticket what can be tracked?
The Java analyzer version 6.10 is currently only available on SonarCloud and the latest release of SonarLint. It is currently planned to be shipped with SonarQube 8.7, which should be the next release of SonarQube.
I just replaced sonar-java-plugin-6.8.0.23379.jar with sonar-java-plugin-6.10.0.24201.jar under my local Sonar 8. Unfortunately, SuppressWarnings using @SuppressWarnings(“pmd:XXX”) are still not suppressed, so the new version does not seem to have the desired effect.
Wow, thanks a LOT for testing and reporting back! After investigation, it seems that the revert we did in 6.10 is not working as expected (because it was not real revert…), and our ITs went through without failing…
I created the following ticket to handle it: SONARJAVA-3652. The fix will be included in version 6.11, to be released at the end of the week.
This version will then be part of next SQ 8.7 (replacing version 6.10). It will also be deployed on SonarCloud.
Good to know, thank you for the following up @jborgers.
The release of Java Analyzer 6.11 is most probably going to happen between today and tomorrow. It should then be available publicly in the upcoming days.