The Artima Developer Community
Sponsored Link

Java Community News
PMD 3.7 Released

0 replies on 1 page.

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 0 replies on 1 page
Frank Sommers

Posts: 2642
Nickname: fsommers
Registered: Jan, 2002

PMD 3.7 Released Posted: Jun 1, 2006 7:35 AM
Reply to this message Reply
Summary
PMD is a static analysis tool that scans Java source code for potential problems. The latest release introduces new rules, such as a J2EE ruleset with an initial UseProperClassLoader rule, better JSP integration, including the ability to experiment with JSP rules in the rule designer GUI, and better Ant integration.
Advertisement

The PMD project released version 3.7 of its static analysis tool for Java.

PMD scans Java source code, parses that code, and then matches the parsed code tree with a set of rules. Some of PMD's built-in rules look for unused variables, unnecessary object creation, empty catch blocks, wasteful String and StringBuffer usage, overcomplicated expressions, and even code duplication (often the result of copy-and-past programming).

While PMD's built-in rules are sufficient for most users, users can extend PMD's ruleset with their own rules. PMD uses the JavaCC parser, and its Abstract Syntax Tree (AST) plugin, and parses source code into an AST tree. Thus, PMD rules can be written in Java with the JavaCC and AST APIs, and then configured to work with Ant or an IDE's source code editor. PMD is already integrated with a host of IDEs, such as IntelliJ IDEA, NetBeans, and Eclipse.

The new PMD version provides better J2EE support with a J2EE rule, UseProperClassLoader, and better JSP support with rules such as DuplicateJspImport, and the ability to experiment with JSP rules in a graphical rule designer.

Do you use PMD, or some other static analysis tool, on your code?

Topic: PMD 3.7 Released Previous Topic   Next Topic Topic: Implement Business Logic with the Drools Rules Engine

Sponsored Links



Google
  Web Artima.com   

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