Coder Social home page Coder Social logo

stigkj / jslint4java Goto Github PK

View Code? Open in Web Editor NEW

This project forked from happygiraffe/jslint4java

1.0 2.0 0.0 1.61 MB

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

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

License: Other

Shell 0.20% Ruby 0.51% Java 32.93% JavaScript 66.36%

jslint4java's Introduction

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).

jslint4java's People

Contributors

ashamash avatar happygiraffe avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.