jshint4j

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

License

License

MIT
GroupId

GroupId

pl.touk
ArtifactId

ArtifactId

jshint4j
Last Version

Last Version

2.9.5
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/TouK/jshint4j
Source Code Management

Source Code Management

https://github.com/gildur/jshint4j

Download jshint4j

How to add to project

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

Dependencies

compile (1)

Group / Artifact Type Version
org.mozilla : rhino jar 1.7.7.2

test (1)

Group / Artifact Type Version
junit : junit jar 4.12

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

pl.touk

TouK

We’re a software house based in Warsaw. We deliver custom IT systems.

Versions

Version
2.9.5