Re: why not envisage to extend suggestions to html and/or jsp pages ?
Tor Norbye <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.tasklist.devel |
|---|---|
| Message-ID | <[email protected]> |
On Tue, 2003-01-28 at 16:12, Jesse Glick wrote: > vbrabant wrote: > > Ok, I will search for somes PMD-like tool for HTML and/or JSP > > http://tidy.sourceforge.net/ > > is probably your best bet for HTML. Note that there is a SWIG-based > wrapper available for Java, so you could embed this using JNI I guess. > (Would need to ship versions for common platforms.) > > http://sourceforge.net/projects/jtidy > > would be much easier to deal with, though you would have to check > whether it was being kept up-to-date w.r.t. regular (C) Tidy. Thanks. I took a look at JTidy (I really don't want to mess with native code). It hasn't been updated for a year and a half - but then HTML has pretty much stayed unchanged the last couple of years since HTML 4 too. I ran it and it looks comprehensive. And it has a very attractive license - no issues as far as I can tell. So I took a stab at integrating it, and it was trivial. I'm 90% done, and I did it all during my commute in to work this morning. (Ok, I will admit that I have a long commute - nearly two hours. Luckily I only do it twice a week.) Most of the work was figuring out where tidy is dumping out its errors, and dealing with the fact that it was written with the assumption that it will dump output to a file, not provide errors to other clients. Now I'll try to created a scrambled file for tidy (nbbuild.netbeans.org/scrambler.html) so I can release version 0.1 :) -- Tor