Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse sonar plugin vs findbugs+pmd+checkstyle eclipe plugins

We are trying to install a CI Platform with (Jenkins,sonar,eclipse ...). So that every developer can make analysis on his code before commit, I'm wondering between two alternatives :

  • running local analysis with the sonar plugin.
  • install the different plugins that sonar use (findbug,pmd,checkstyle ...) and configure them to meet the sonar configuration.

I'm not sure which alternative to use? I used to work with findbugs,pmd, checkstyle in eclipse and they look great. Can you tell me which is the best alternative? Thanks in advance.

Regards.

like image 756
gbenmansour Avatar asked Feb 06 '13 14:02

gbenmansour


People also ask

Does SonarQube use PMD?

SonarQube PMD Plugin. Sonar-PMD is a plugin that provides coding rules from PMD for use in SonarQube. Starting April 2022, the project has found a new home.

Does SonarQube use checkstyle?

SonarQube, natively, cannot run PMD and Checkstyle, only consume the reports those tools generate. You'll need to run those tools to generate the reports prior to your SonarQube analysis. Adding the analysis parameters won't do that for you.

How does SonarQube integration with Eclipse?

Figure 11.3. The SonarQube plugin for Eclipse helps you close the circle of code quality. It gives you local visibility into existing issues in the files you're working on, helps you manage your issue assignments, and lets you prescan your code changes for issues.


1 Answers

With Sonar plugin you can manage the violations like:

  • Create a review
  • Mark a violations as false positive or fixed
  • View the hot classes and hot violations
  • View yours reviews

If you use separate plugins you have to go sonar web to do that. The great advance of sonar is the reviews.

Other question is how many projects you have and will have. I currently work with more than 70 projects and many profiles. Is more simple to me run analysis with one plugin, because I need just add the server and find the project. With other plugin you need add the link for each project in each plugin configuration.

like image 55
Andre Piantino Avatar answered Sep 22 '22 15:09

Andre Piantino