Skip to content

A Review Bot tool which executes jslint on posted javascript

Notifications You must be signed in to change notification settings

smacleod/reviewbot-jslint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

reviewbot-jslint

reviewbot-jslint is a plugin to the Review Bot static analysis automation tool. It allows the JSLint code quality tool to be run on .js files uploaded in Review Board review requests.

JSLint is a tool written in JavaScript developed by Doug Crockford for inspecting JavaScript code.

Installation

reviewbot-jslint requires installation of Review Bot (see instructions), and of the Spidermonkey JavaScript engine.

Spidermonkey

  • Installation: For instructions on building and installing Spidermonkey, please consult the Mozilla Developer Network documentation.

  • Running JSLint on Spidermonkey: In order for reviewbot-jslint to be able to run jslint.js on your system, the path to the js executable (e.g. js-1.8.5/js/src) must be added to the system path.

Installing and Registering Tasks

Review Bot workers are able to find installed tools using Entry Points.

In order to register reviewbot-jslint as a tool, run the following from the top-level reviewbot-jslint directory:

python setup.py install

After a tool has been installed on a worker, it must be registered with the Review Bot extension, and configured in the admin panel. Registering tools is accomplished in the following manner:

  1. Go to the extension list in the admin panel.
  2. Click the 'DATABASE' button for the 'Review-Bot-Extension'.
  3. Click the 'Review bot tools' link.
  4. Click 'REFRESH INSTALLED TOOLS' in the upper right of the page.

This will trigger tool registration for all of the currently running workers, and refresh the page. reviewbot-jslint should appear in the tools list as "JSLint Code Quality Tool".

About

A Review Bot tool which executes jslint on posted javascript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published