jshint4j

Java wrapper for JSHint (http://www.jshint.com/).

License

License

MIT
GroupId

GroupId

pl.gildur
ArtifactId

ArtifactId

jshint4j
Last Version

Last Version

1.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

jshint4j
Java wrapper for JSHint (http://www.jshint.com/).
Project URL

Project URL

https://github.com/gildur/jshint4j
Source Code Management

Source Code Management

https://github.com/gildur/jshint4j

Download jshint4j

How to add to project

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

Dependencies

compile (1)

Group / Artifact Type Version
org.mozilla : rhino jar 1.7R4

test (1)

Group / Artifact Type Version
junit : junit jar 4.11

Project Modules

There are no modules declared in this project.

jshint4j

Java wrapper for JSHint (http://www.jshint.com/).

Build Status

Usage

Add dependency to your project:

<dependency>
    <groupId>pl.gildur</groupId>
    <artifactId>jshint4j</artifactId>
    <version>1.0.1</version>
</dependency>

Use it in your code:

JsHint jsHint = new JsHint();
String source = "function test() { return x; }";
String options = "{ undef: true }";
List<Error> errors = jsHint.lint(source, options);
for (Error error : errors) {
    System.out.printf("JSHint error on line %d, character %d: %s",
            error.getLine(),
            error.getCharacter(),
            error.getReason());
}

License

MIT

Versions

Version
1.0.1
1.0.0