• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

PMD and findbugs

 
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
--posting it here as I earlier posted it on performance forum and am not sure if that forum is correct or not-----------

Hello,
I am working on a project where the architect team has asked us to use some tools for efficient coding like PMD, Findbugs etc. I went through the details of these tools and found that FindBugs should be more useful than PMD.
would like to know if you can educate me more on this.

Regards,
Ramakant
 
Ranch Hand
Posts: 5575
Eclipse IDE Windows XP Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

nitinram agarwal wrote:found that FindBugs should be more useful than PMD.


As far I know, PMD is better choice. I used the both, now I am using only PMD . I do like PMD for its clear instruction.
 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have worked with both the tool. for me FindBugs is more user friendly and useful.
adding and removing rules and filtering is very easy in Findbug but in PMD its a painful task.
 
Ranch Hand
Posts: 433
Netbeans IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
They complement each other. We have both tools integrated in our continious integration process (along with some others like Checkstyle).
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
While there's some overlap in functionality, they're definitely different tools. FindBugs is *specifically* targeted at finding *bugs* (hence the name). PMD is a more general-purpose tool and will find *some* of the same things FindBugs will, but doesn't do the same kind of analyses FindBugs does.

What specifically do you want to know?
 
nitinram agarwal
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I want to ensure that no unintnetional bugs are there in the code that we write.
 
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
As opposed to intentional ones?
 
Joachim Rohde
Ranch Hand
Posts: 433
Netbeans IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

nitinram agarwal wrote:I want to ensure that no unintnetional bugs are there in the code that we write.


Hm... could you define "bug"? You cannot expect any miracles from such kind of tools due to the fact they are only making are static analysis of your code. (Which btw. can also lead to false positives).
Maybe asking for the obvious: are you already writing unittests?
 
clojure forum advocate
Posts: 3479
Mac Objective C Clojure
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No one can expect miracles but these tools are so useful and can spot possible bugs.
According to my observation, a really big number of developers don't live in crimson world of test driven development.
Test driven development should be shared culture among team members in order to exploit it is true benefit.
 
Bartender
Posts: 1682
7
Android Mac OS X IntelliJ IDE Spring Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try Sonar it combines all of the above mentioned tools (checkstyle, findbugs, pmd) plus some others and adds even more functionality and configuration ability beyond this.

http://www.sonarsource.org/

 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic