jslint4java

A Java wrapper for Douglas Crockford's wonderful JSLint tool.

License

License

New BSD License
GroupId

GroupId

com.googlecode.jslint4java
ArtifactId

ArtifactId

jslint4java
Last Version

Last Version

2.0.5
Release Date

Release Date

Type

Type

jar
Description

Description

jslint4java
A Java wrapper for Douglas Crockford's wonderful JSLint tool.
Project URL

Project URL

http://code.google.com/p/jslint4java/jslint4java/

Download jslint4java

How to add to project

<!-- https://jarcasting.com/artifacts/com.googlecode.jslint4java/jslint4java/ -->
<dependency>
    <groupId>com.googlecode.jslint4java</groupId>
    <artifactId>jslint4java</artifactId>
    <version>2.0.5</version>
</dependency>
// https://jarcasting.com/artifacts/com.googlecode.jslint4java/jslint4java/
implementation 'com.googlecode.jslint4java:jslint4java:2.0.5'
// https://jarcasting.com/artifacts/com.googlecode.jslint4java/jslint4java/
implementation ("com.googlecode.jslint4java:jslint4java:2.0.5")
'com.googlecode.jslint4java:jslint4java:jar:2.0.5'
<dependency org="com.googlecode.jslint4java" name="jslint4java" rev="2.0.5">
  <artifact name="jslint4java" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.googlecode.jslint4java', module='jslint4java', version='2.0.5')
)
libraryDependencies += "com.googlecode.jslint4java" % "jslint4java" % "2.0.5"
[com.googlecode.jslint4java/jslint4java "2.0.5"]

Dependencies

compile (2)

Group / Artifact Type Version
org.mozilla : rhino jar 1.7R4
com.beust : jcommander jar 1.30

test (4)

Group / Artifact Type Version
junit : junit jar 4.11
xmlunit : xmlunit jar 1.3
com.google.guava : guava jar 13.0.1
org.hamcrest : hamcrest-library jar 1.3

Project Modules

There are no modules declared in this project.

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.

You can run it on the command line:

% java -jar jslint4java-${project.version}.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 docs/ant.html for more details.

NB: The packaged jar file includes a builtin version of rhino (a JavaScript engine). If this causes trouble, you can download a standalone version 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).

Patches

If you'd like to change jslint4java, the best way to do so is via github. Fork the main repository, make your changes and submit a pull request.

If you don't wish to use github, just clone the repository and submit patches over email.

$ git clone git://github.com/happygiraffe/jslint4java.git
$ … hack, hack, hack …
$ git send-email origin

Please try to follow the existing code style when making changes.

You should ensure that the existing test and build works before submitting patches:

$ mvn -Pdist clean verify

Versions

Version
2.0.5
2.0.4
2.0.3
2.0.2
2.0.1
2.0.0
1.4.7
1.4.6
1.4.4
1.4.3
1.4.2
1.4.1
1.4
1.3.3
1.3.2
1.3.1
1.3