The Artima Developer Community
Sponsored Link

Java Community News
PMD 3.6 Release Helps Fix More Java Coding Problems

1 reply on 1 page. Most recent reply: Apr 9, 2006 12:11 PM by Vijay Nathani

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Frank Sommers

Posts: 2642
Nickname: fsommers
Registered: Jan, 2002

PMD 3.6 Release Helps Fix More Java Coding Problems Posted: Mar 30, 2006 7:25 AM
Reply to this message Reply
Summary
PMD is an open-source project that helps analyze Java source files, reports on possible bugs, dead code, suboptimal code, cyclomatic complexity, and is highly configurable with a series of rules. The latest PMD release adds more code checking rules, including rules for working with JSF.
Advertisement

PMD is a highly configurable code quality tool for Java. Among its key features are customizable rule sets, and the latest PMD release adds rules for String-related code, and for JSF. PMD can be configured as part of a build process to scan Java source code and find problems such as:

  1. Possible bug, such as empty try/catch/finally/switch statements
  2. Dead code, such as unused local variables, parameters and private methods
  3. Suboptimal code, including wasteful String/StringBuffer usage
  4. Overcomplicated expressions, e.g., unnecessary if statements, for loops that could be while loops
  5. Duplicate code - copied/pasted code means copied/pasted bugs

PMD is already integrated with most Java IDEs.

Do you use code-quality tools such as PMD as part of your build process? If so, how often do you run these tools on your code?


Vijay Nathani

Posts: 29
Nickname: vijaynath
Registered: Jan, 2006

Re: PMD 3.6 Release Helps Fix More Java Coding Problems Posted: Apr 9, 2006 12:11 PM
Reply to this message Reply
I don't think that many projects are using any tool like PMD. I have not used PMD, but the general impression seems to be that tools like these generate a lot of useless warnings / information. I would tend to agree for most tools in the market that do static analysis.
Vijay.
www.geocities.com/vijay_nathani

Flat View: This topic has 1 reply on 1 page
Topic: PMD 3.6 Release Helps Fix More Java Coding Problems Previous Topic   Next Topic Topic: More on Web Frameworks: A RIFE Blog Example

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use