triAGENS/ArangoDB — pull request #99 by jsteemann (2012-05-28 20:18:00+00:00)
Title: potential solution for issue #95 (execute jslint)

The pull request contains a potential solution for jslint execution.
jslint itself is added in js/common/modules/jslint/jslint.js.
A wrapper for jslint is in js/common/modules/jslint.js.
It is based on the jsunity wrapper and has the same runTest() command.
It can be used under --console like this:

js = require("jslint");
js.runTest("...");

Additionally, the server (not arangosh) now has an option --jslint. That option can be specified multiple times and can be used to pass file names to the server to validate with jslint. Again, the procedure is based how jsunity was integrated (--unit-tests option).
So, no --jslint available in arangosh, but in arangod. I think arangod is an even better place for jslint because it makes integration of jslint into the test suite easier, re-usage of jslint on server side is simplfied etc. Hope this makes sense.