Tom Copeland's Recent Posts

RSS Feeds

« Faster StringBuffer.append() | Main | Save thirteen bytes - (null instanceof String) is false! »

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a00d83451d3c069e200e5505cd3818833

Listed below are links to weblogs that reference Demo of some nice Javascript for PMD reports:

Comments

This is a *very* nifty report style. I like the collapsing boxes and the summary at the top. I could see this sitting on a master dashboard display somewhere along with the open bug count, the build status, and other helpful info.

I seem to remember saying something along these lines last week: "Of course, if you wanted to add more information or color code the different types of rule-breakages, this would be useful to provide a quick summary of things that need particular attention." ;)

Errors out in FF 1.0, but works fine in IE6.0. Maybe I should just upgrade FF...

Yup, it's a cool piece of work. FWIW, it works for me in FF 1.5 (which also has drag and drop tabs, which are quite nice).

And as an experiment, I attempted to use PMD on a extensive set of JSP files.

The results are mixed... somethings like unused variable work pretty well, but other things - like handling try/catch and many flow control things - seem to confuse PMD once the jsp's are pre-compiled. A useful experiment regardless.

I think PMD would be most useful for JSPs if you could run it before the JSP was compiled. When running it after compilation, you end up finding problems in the JSP compiler, not in your code :-)

But we'd need a JavaCC grammar for JSP to do that - a big job, that.

Very good. I like the fact that it puts the "degree of fault" in the picture. I don't know if the PMD report already did that (I use Maven 1 plugin), but that is major advantage. You can quickly get an overview of what needs fixing badly and what is less worse.

Wim
PS: I do really hate the colors used, but it's a very good idea to start with anyway.

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been saved. Comments are moderated and will not appear until approved by the author. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment

Comments are moderated, and will not appear until the author has approved them.