My favorites | Sign in
Project Logo
                
Code license: New BSD License
Labels: java, javascript, lint, ant
Show all Featured downloads:
jslint4java-1.2.1.zip
Show all Featured wiki pages:
JSLintAntTask

This is a java wrapper around the fabulous tool by Douglas Crockford, jslint. It provides a simple interface for detecting potential problems in JavaScript code.

The usage is simple:

  % java -jar jslint+rhino.jar application.js
  jslint:application.js:11:9:Line breaking error ')'.
  jslint:application.js:11:10:Missing semicolon.

There are a multitude of options; try --help for more details.

You might also be interested in the introduction of an ant task in version 1.1. This lets you run jslint as part of your builds. For documentation, see the JSLintAntTask wiki page. If you find this useful, you may also like the jsmin ant task for reducing the size of your JavaScript files.

News

jslint4java 1.2.1 was released on 2008-09-07.

jslint4java 1.2 was released on 2008-09-07.









Hosted by Google Code