<commit_before>jshint4j
========

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

[![Build Status](https://travis-ci.org/gildur/jshint4j.svg?branch=master)](https://travis-ci.org/gildur/jshint4j)

Usage
-----

```java
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
-------

<a href="https://raw.githubusercontent.com/gildur/jshint4j/master/LICENSE">MIT</a><commit_msg>Describe dependency from maven central.<commit_after>jshint4j
========

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

[![Build Status](https://travis-ci.org/gildur/jshint4j.svg?branch=master)](https://travis-ci.org/gildur/jshint4j)

Usage
-----

Add dependency to your project:
```xml
    <dependency>
      <groupId>pl.gildur</groupId>
      <artifactId>jshint4j</artifactId>
      <version>1.0.0</version>
    </dependency>
```

Use it in your code:
```java
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
-------

<a href="https://raw.githubusercontent.com/gildur/jshint4j/master/LICENSE">MIT</a>
{'fraction_non_alphanumeric': 0.1925, 'fraction_numerical': 0.0075, 'mean_word_length': 3.750741839762611, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 6, 'lorem ipsum': 0, 'www.': 2, 'xml': 1}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4371694', 'n_tokens_mistral': 574, 'n_tokens_neox': 560, 'n_words': 111}