Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rhino Wrapper: Globals & Exitcode #1197

Closed
wants to merge 2 commits into from
Closed

Rhino Wrapper: Globals & Exitcode #1197

wants to merge 2 commits into from

Conversation

lukx
Copy link
Contributor

@lukx lukx commented Jul 26, 2013

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.

@valueof valueof closed this in dcc1251 Aug 2, 2013
jugglinmike pushed a commit to jugglinmike/jshint that referenced this pull request Oct 21, 2014
…package.

Signed-off-by: Anton Kovalyov <anton@kovalyov.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant