Community
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

There's now a PMD plugin for TextPad...

 
Post new topic   Reply to topic    Community Forum Index -> Tips
View previous topic :: View next topic  
Author Message
tcopeland



Joined: 07 Oct 2003
Posts: 2

PostPosted: Tue Oct 07, 2003 3:02 pm    Post subject: There's now a PMD plugin for TextPad... Reply with quote

.....thanks to Jeff Epstein. PMD is a Java source code analyzer. It finds
unused variables, empty catch blocks, unnecessary object creation, and so
forth.

Folks can download the latest version of PMD here:

http://sourceforge.net/project/showfiles.php?group_id=56262

and instructions on hooking up TextPad to PMD are here:

http://pmd.sourceforge.net/integrations.html

Yours,

Tom
Back to top
View user's profile Send private message Send e-mail
tcopeland



Joined: 07 Oct 2003
Posts: 2

PostPosted: Tue Sep 20, 2005 8:38 pm    Post subject: Re: There's now a PMD plugin for TextPad... Reply with quote

tcopeland wrote:
PMD is a Java source code analyzer. It finds
unused variables, empty catch blocks, unnecessary object creation, and so
forth.
Folks can download the latest version of PMD here:
http://sourceforge.net/project/showfiles.php?group_id=56262
and instructions on hooking up TextPad to PMD are here:
http://pmd.sourceforge.net/integrations.html

A new version of PMD is out - v3.3 - with seven new rules, better JDK 1.5 support, and speed improvements. Among the new rules is UnnecessaryLocalBeforeReturn, which finds code like this:
Code:

  public class Foo {
    public int foo() {
      int x = doSomething();
      return x;  // instead, just 'return doSomething();'
    }
  }

And of course it still works with Textpad. Furthermore, the integration is a bit simpler since you don't have to type the entire ruleset name - rather than type "rulesets/unusedcode.xml" you can just type "unusedcode". Saves a few keystrokes, anyhow.

Questions/comments are welcome!

Yours,

Tom

P.S. Using PMD? Get the book - "PMD Applied"!
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Community Forum Index -> Tips All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB