Question Details

Browse

What is your preferred static analysis tool for Java?

By alex5092 - Sep. 04, 2008

What is your preferred static analysis tool for Java (and why)? FindBugs, PMD, or a commercial tool.


Answers

Add Answer
  1. By mittaldeepak01@gmail.com on Sep. 07, 2008

    I have used PMD, Findbugs and CheckStyle quite extensively on many projects.


    While there is quite some overlap between the analysis done by these tools and I tend to use all the 3 on my projects.


    I think that the most useful analysis is produced by Findbugs. I think that PMD and Checkstyle are limited to coding conventions, best-practices, etc, but Findbugs has been able to flag some real bugs in my code, which I consider the most useful.


    0 Votes
  2. By blaze on Sep. 08, 2008

    We you FindBug in many other project and very pleased with it results.


    0 Votes
  3. By Athrawn17 on Oct. 08, 2008

    PMD is good for picking and choosing rules for your project to adhere to.


    Checkstyle keeps developers in line with how their code is structured. This makes it easier to read everyone else's code.


    Findbugs is okay, but isn't as customizable as PMD.


    JDepend is used to find cyclic dependancies and report on third party dependancies.


    JavaNCSS is fun to watch line of code count.


    Put them all together with a CI tool and do analysis over time.


    0 Votes
  4. By badqiu on Oct. 15, 2008

    checkstyle?


    0 Votes
  5. By kongqz on Oct. 16, 2008

    profile


    0 Votes
Share your knowledge