How to avoid SonarQube and IntelliJ Plugin version mismatch #2766
-
Have install SonarQube FindBugs plugin version 4.2.6 and in the IntelliJ IDE install SpotBugs version 1.2.5. ran the same Java project in IDE as well as SonarQube. When compared both the report, the issue count between SonarQube and IntelliJ IDE comes around 20% (IntelliJ issue count higher than SonarQube). This count difference might be due to version mismatch between SonarQube and IntelliJ Plugins, what i have mentioned above. how to find equivalent version plugin for both Intellij and SonarQube to avoid this count difference. please help Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
It looks like the SpotBugs IntelliJ Plugin latest version, 1.2.5 is stuck on SpotBugs 4.4.2, while the SonarQube FindBugs plugin is quite up to date, the 4.2.6 version supports SpotBugs version 4.8.2. |
Beta Was this translation helpful? Give feedback.
It looks like the SpotBugs IntelliJ Plugin latest version, 1.2.5 is stuck on SpotBugs 4.4.2, while the SonarQube FindBugs plugin is quite up to date, the 4.2.6 version supports SpotBugs version 4.8.2.
If your goal is to use the same SpotBugs core versions, then you can downgrade the SonarQube plugin to match the IntelliJ plugin's version, or rather instead of the IntelliJ plugin, you can use SpotBugs via other integrations (ant, maven, gradle, eclipse), or you can also contribute to these projects, since all of them are opensource projects. However, the SpotBugs IntelliJ Plugin is developed by JetBrains, not by the SpotBugs Team, and I have no info whether it will be maintained.