[Project_owners] JSLint

Eric H. Jung grimholtz at yahoo.com
Fri Mar 10 16:07:11 EST 2006


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
> 



More information about the Project_owners mailing list