jshint/jshint — Issue #356: env/jshint-rhino.js hardcodes path to jshint.js
Author: non
Created: 2011-11-23 23:07:38+00:00
State: open

From what I can tell, I'm expected to be able to run "rhino /path/to/jshint/env/jshint-rhino.js myfile.js" and have it work.

However, it seems that unless cwd is "/path/to/jshint" then things don't work, because jshint-rhino.js calls 'load("jshint.js");'.

$ rhino jshint/env/jshint-rhino.js foo.js

js: Couldn't read source file "jshint.js: jshint.js (No such file or directory)".
js: uncaught JavaScript runtime exception: ReferenceError: "JSHINT" is not defined.