[Project_owners] JSLint

Adam Judson adamsplugins at gmail.com
Fri Mar 10 16:56:34 EST 2006


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


More information about the Project_owners mailing list