jshint/jshint — pull request #1197 by Lukx (2013-07-26 05:57:49+00:00)
Title: Rhino Wrapper: Globals & Exitcode

This PR fixes 2 issues I have come across.
1.) Exit Code behaviour differed between the Node-CLI Version of JSHint and the Rhino Wrapper. "JSHint ran fine, but you have lints" now exits with 2 on rhino as well.
2.) When linting multiple files at once, JSHint "forgot" the configured globals from the second file on, This Patch introduces the globals as the third argument to JSHINT( input, opts, globals), rather than relying on "opts.predef". This Behaviour was also taken from the Cli-Wrapper.