File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Best Static Analysis Tools for Java applications

 
krithika vittal
Greenhorn
Posts: 11
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And also please share POM.xml file to configure the plugins ... thanks
 
Tim Moores
Bartender
Pie
Posts: 2491
7
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I like FindBugs, but PMD isn't bad either.
 
Ananth Chellathurai
Ranch Hand
Posts: 349
Eclipse IDE Hibernate Spring
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My pick would be PMD and findbugs(both).
 
krithika vittal
Greenhorn
Posts: 11
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
are you people using eclipse plugins or configuring the reports in pom.xml for PMD and findbugs?
 
Tim Moores
Bartender
Pie
Posts: 2491
7
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 349
Eclipse IDE Hibernate Spring
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We use eclipse plugins
 
Jayesh A Lalwani
Rancher
Pie
Posts: 2756
32
Eclipse IDE Spring Tomcat Server
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We run Sonar on our maven prject. It runs several tools out of the box and merges the reports
 
krithika vittal
Greenhorn
Posts: 11
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Finally,I have chosen PMD and findbugs.

Thank you guys.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic