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.
reviewbot-jslint requires installation of Review Bot (see instructions), and of the Spidermonkey JavaScript engine.
-
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.
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:
- Go to the extension list in the admin panel.
- Click the 'DATABASE' button for the 'Review-Bot-Extension'.
- Click the 'Review bot tools' link.
- 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".