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

Upgrade JSHint to 2.5.4 #177

Merged
merged 5 commits into from
Sep 11, 2014
Merged

Upgrade JSHint to 2.5.4 #177

merged 5 commits into from
Sep 11, 2014

Conversation

jish
Copy link
Owner

@jish jish commented Sep 11, 2014

Previously we vendored + patched a copy of JSHint each time we needed to upgrade. This commit takes a plain copy of JSHint and adapts PreCommit to use JSHint out of the box.

This should make future JSHint upgrades much easier :)

@shajith @mpapis @mwerner

Closes #157

Previously we vendored + patched a copy of JSHint each time we needed
to upgrade. This commit takes a plain copy of JSHint and adapts
PreCommit to use JSHint out of the box.

This should make future JSHint upgrades much easier :)
@mpapis
Copy link
Collaborator

mpapis commented Sep 11, 2014

looks good to me ;)

@@ -5,7 +5,7 @@ module Checks
class Jshint < Js

def js_config
if config_file
@js_config ||= if config_file
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you use this js_config outside this class? Can it be made private?

@shajith
Copy link
Collaborator

shajith commented Sep 11, 2014

+1, looks legit, left some minor notes. The build's broken though?

When appending JavaScript it is considered best practice to include
an initial semi-colon to ensure the concatenated content does not
collide.
@jish
Copy link
Owner Author

jish commented Sep 11, 2014

💇 updated with suggestions

I'm not sure what to do about the JRuby test failures. Should we drop JRuby from Travis for the time being?

@shajith
Copy link
Collaborator

shajith commented Sep 11, 2014

+1. Maybe mark the jruby build as optional in the travis matrix? I haven't looked at the failure myself, so take that as a light suggestion.

@jish
Copy link
Owner Author

jish commented Sep 11, 2014

"Maybe mark the jruby build as optional in the travis matrix?"

#178

@mpapis
Copy link
Collaborator

mpapis commented Sep 11, 2014

jruby issue jruby/jruby#1945 - will be fixed in 1.7.16, might take some time for it to make to travis

@shajith
Copy link
Collaborator

shajith commented Sep 11, 2014

+1

jish added a commit that referenced this pull request Sep 11, 2014
@jish jish merged commit aa3bff1 into master Sep 11, 2014
@jish jish deleted the josh/upgrade_jshint branch September 11, 2014 23:27
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.

Update the version of JSHint bundled with pre-commit
4 participants