File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Open Source Projects and the fly likes Best Static Analysis Tools for Java applications Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Best Static Analysis Tools for Java applications" Watch "Best Static Analysis Tools for Java applications" New topic
Author

Best Static Analysis Tools for Java applications

krithika vittal
Greenhorn

Joined: Jul 14, 2009
Posts: 11
Hi,

Kindly provide suggestions for Static Analysis Tools/Java Standards Checking tools for enterprise Java applications/products.

I came across certain tools like PMD,Assent.Suggest me the best , please

Thanks,
Krithika
krithika vittal
Greenhorn

Joined: Jul 14, 2009
Posts: 11
And also please share POM.xml file to configure the plugins ... thanks
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
I like FindBugs, but PMD isn't bad either.
Ananth Chellathurai
Ranch Hand

Joined: Nov 21, 2007
Posts: 349

My pick would be PMD and findbugs(both).


Ananth Chellathurai [Walk on software]
krithika vittal
Greenhorn

Joined: Jul 14, 2009
Posts: 11
are you people using eclipse plugins or configuring the reports in pom.xml for PMD and findbugs?
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
I use the Ant tasks available for both. That way it's easy to start them from the command line, from within the IDE and as part of a Hudson/Jenkins build.
Ananth Chellathurai
Ranch Hand

Joined: Nov 21, 2007
Posts: 349

We use eclipse plugins
Jayesh A Lalwani
Bartender

Joined: Jan 17, 2008
Posts: 2434
    
  28

We run Sonar on our maven prject. It runs several tools out of the box and merges the reports
krithika vittal
Greenhorn

Joined: Jul 14, 2009
Posts: 11
I added pmd and findbugs plugins into my eclipse.

But when i run pmd on my source code, am getting the below exception,,

2012/03/14 11:24:00,372 ERROR PMDPlugin Error when writing project properties
org.eclipse.core.internal.resources.ResourceException: Could not set property: net.sourceforge.pmd.eclipse.persprops active_rulset. Value is too long.
at org.eclipse.core.internal.properties.PropertyManager2.setProperty(PropertyManager2.java:157)
at org.eclipse.core.internal.resources.Resource.setPersistentProperty(Resource.java:1822)
at net.sourceforge.pmd.eclipse.PMDPlugin.storeRuleSetForResource(PMDPlugin.java:447)
at net.sourceforge.pmd.eclipse.PMDPlugin.getRuleSetForResourceFromProperties(PMDPlugin.java:388)
at net.sourceforge.pmd.eclipse.PMDPlugin.getRuleSetForResource(PMDPlugin.java:340)

Anybody knows how to resolve this ?

Thanks in advance.
krithika vittal
Greenhorn

Joined: Jul 14, 2009
Posts: 11
Finally,I have chosen PMD and findbugs.

Thank you guys.
 
Consider Paul's rocket mass heater.
 
subject: Best Static Analysis Tools for Java applications