• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Best Static Analysis Tools for Java applications

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
And also please share POM.xml file to configure the plugins ... thanks
 
Saloon Keeper
Posts: 7236
169
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I like FindBugs, but PMD isn't bad either.
 
Ranch Hand
Posts: 349
Hibernate Eclipse IDE Spring
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My pick would be PMD and findbugs(both).
 
krithika vittal
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
are you people using eclipse plugins or configuring the reports in pom.xml for PMD and findbugs?
 
Tim Moores
Saloon Keeper
Posts: 7236
169
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Hibernate Eclipse IDE Spring
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We use eclipse plugins
 
Rancher
Posts: 2759
32
Eclipse IDE Spring Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Finally,I have chosen PMD and findbugs.

Thank you guys.
 
WHAT is your favorite color? Blue, no yellow, ahhhhhhh! Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic