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.
- Recompiled with Java 5 instead of Java 6.
jslint4java 1.2 was released on 2008-09-07.
- Update to latest version of jslint.
- Rework the ant task to be more flexible.