[Project_owners] JSLint

Adam Judson adamsplugins at gmail.com
Fri Mar 10 23:17:38 EST 2006


I believe it's based on the same code, or at least the same set of
rules.  It seems pretty configurable though.

I suspect we should just agree to disagree about conditionals and braces though.

A




On 10/03/06, Eric H. Jung <grimholtz at yahoo.com> wrote:
> Thanks, I'll definitely check it out.
>
> Hope it's not like David Crockford's JSLint (http://www.jslint.com/lint.html). His tool complains
> about conditionals/loops which don't have braces, even if there's only one nested statement. It
> had other annoyances which I don't remember that ultimately led me to dumping it.
>
>
>
> --- Adam Judson <adamsplugins at gmail.com> wrote:
>
> > Just discovered http://www.javascriptlint.com/.
> >
> > As someone who had my extensions do nothing because of missed quotes.
> > brackets and commas on every third change, this has probably saved me
> > about an hour of looking at source code today alone.
> >
> > For those using a .bat file to assemble in windows:
> >
> >  I added this:
> >
> > \dev\jslint\jsl conf \dev\jslint\jsl.default.conf +recurse -process
> > *.js> c:\tmp\jswarnings.txt
> > if %ERRORLEVEL% GTR 0 (
> >    call epm c:\tmp\jswarnings.txt
> >    echo there were warnings
> > )
> >
> > if %ERRORLEVEL% GTR 1 (
> >    echo Errors - aborting
> >    cd ..
> >    goto :EOF
> > )
> > before I build the jar.  (epm is an editor, and \dev\jslint\jsl is the
> > location/exe).
> >
> >
> > Adam
> > photomap.mozdev.org
> > _______________________________________________
> > Project_owners mailing list
> > Project_owners at mozdev.org
> > http://mozdev.org/mailman/listinfo/project_owners
> >
>
> _______________________________________________
> Project_owners mailing list
> Project_owners at mozdev.org
> http://mozdev.org/mailman/listinfo/project_owners
>


More information about the Project_owners mailing list