happygiraffe / jslint4java

A Java wrapper around Doug Crockford's marvellous jslint tool.

This URL has Read+Write access

jslint4java / README.txt
100644 46 lines (31 sloc) 1.624 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
jslint for java <http://code.google.com/p/jslint4java/>
=======================================================
 
This is a java wrapper around the fabulous tool by Douglas Crockford, jslint
(See <http://jslint.com/>). It provides a simple interface for detecting
potential problems in JavaScript code.
 
The output of this project is a jar file, which can be used in two ways.
 
You can run it on the command line:
 
  % java -jar jslint4java-ant-${project.version}-jar-with-dependencies.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.
 
The output is colon separated fields. The fields are:
 
* "jslint"
* the file name
* the line number (starting at zero)
* the character number (starting at zero)
* the problem that was found
 
You may also use the jar as an ant task. The quickest way to get started is
to drop it in ~/.ant/lib. See JSLintTask in the javadoc for more details.
 
NB: The packaged jar file includes a builtin version of rhino (a JavaScript
engine). If this causes trouble, you may wish to download standalone versions
through the maven repository.
 
If you wish to use jslint4java from within Java, please use a maven dependency:
 
    <dependency>
      <groupId>com.googlecode.jslint4java</groupId>
      <artifactId>jslint4java</artifactId>
      <version>${project.version}</version>
    </dependency>
 
If you have any comments or queries, please send them to dom [at] happygiraffe.net.
 
This software is licenced under the BSD licence (see LICENCE.txt).
 
@(#) $Id$