EEA & Eionet documentation hub

Browse documentation for IT-systems used by the European Environment Agency and the Eionet network.

Docker image for jslint checker

eea.docker.jslint4java

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

Usage

$ docker run --rm -v /path/to/python/code:/code eeacms/jslint4java

or

$ docker run --rm -v eeacms/jslint4java https://github.com/eea/eea.similarity.git

See jslint4java --help for more options:

$ docker run --rm eeacms/jslint4java

Running in jenkins, including pull requests:

  • GIT_NAME, GIT_SRC - must be given

  • GIT_BRANCH - defaults to master

  • GIT_CHANGE_ID - can be empty or pull request id

$ docker run -i –rm -e GIT_SRC=”https://github.com/eea/$GIT_NAME.git” -e GIT_NAME=”$GIT_NAME” -e GIT_BRANCH=”$BRANCH_NAME” -e GIT_CHANGE_ID=”$CHANGE_ID” eeacms/jslint4java

Edit this page