20030105 Sunday January 05, 2003

PMD and Checkstyle I knew about Checkstyle, but PMD is new to me. The Struts Development Team has recently added these tasks to its build.xml file if you're interested in an example. Erik Hatcher has the Checkstyle task in his JavaDevWithAnt project, and I'm using his build.xml file as a model, but I've never used the Task. I've also had the Checkstyle Plug-In for Eclipse installed at one point, but it gave me so many errors - I disabled it. It'd be nice to use these from the beginning on a project. Posted in Java at Jan 05 2003, 12:52:38 PM MST 2 Comments

Comments:

Checkstyle is a fairly scary thing to turn on in the middle of a large project (I think we had about 10,000 errors at the start). 90% of these can be fixed by simply running a formatter on all the files, and you're generally left with just a whole bunch of complaints about lazy people (usually myself... oops) leaving off the javadoc (which we still had a lot, but that was something that we liked to get hit in the face about).

Posted by Daniel on January 05, 2003 at 03:19 PM MST #

If you like CheckStyle and pmd you can take it to the next level and use JRefactory to fix and reformat style errors according to your own style preferences all from ant. https://jrefactory.dev.java.net/

Posted by Mark Hardy on May 02, 2005 at 06:14 PM MDT #

Post a Comment:
  • HTML Syntax: Allowed
Click me to subscribe
Matt Raible is a Web Architect who enjoys developing applications with open source technologies. Contact me for rates.
« January 2009
SunMonTueWedThuFriSat
    
1
2
3
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
       
Today

Recent Entries

Tag Cloud