Path: csiph.com!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: Roedy Green Newsgroups: comp.lang.java.help Subject: Re: LINTing Javascript in a Java WebApp Date: Mon, 11 Feb 2013 11:42:58 -0800 Organization: Canadian Mind Products Lines: 31 Message-ID: References: Reply-To: Roedy Green NNTP-Posting-Host: K2Qzzs3EAqXk5RLzfhxcSw.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 X-Newsreader: Forte Agent 6.00/32.1186 Xref: csiph.com comp.lang.java.help:2488 On Mon, 11 Feb 2013 12:26:55 -0500, Steve wrote, quoted or indirectly quoted someone who said : >Hi, > >I have a number a Java webapp with a number of embedded ( in JSPs ) >Javascripts and straight *.js files. > >More than few times I've built the webapp and deployed it only to find >I've made a trivial error, like forgetting a semicolon in the Javascript. > >I've seen that there are some Javascript LINT tools out there. > >Is there any particular tool or combination of tools that will highlight >Javascript errors as I go ( similar to what spellchecks do these days by >putting squiggly red line underneath ) or give me error messages at >compile time ( for my Java webapp )? I have not used it, but I have seen the JavaScript lint tools in IntelliJ. See http://mindprod.com/jgloss/intellij.html There are also so primitive ones in http://mindprod.com/jgloss/htmlvalidator that work on html with embedded JavaScript. -- Roedy Green Canadian Mind Products http://mindprod.com The first 90% of the code accounts for the first 90% of the development time. The remaining 10% of the code accounts for the other 90% of the development time. ~ Tom Cargill Ninety-ninety Law