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

Fixes #34 - Adding hound and rubocop config and coveralls gem #39

Merged
merged 1 commit into from
Feb 21, 2017

Conversation

hweng
Copy link
Contributor

@hweng hweng commented Feb 16, 2017

No description provided.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 37e2fbbdfeed2dc49167aac76bea3a555e27d686 on feature/code_review_tool into ** on develop**.

@hweng hweng force-pushed the feature/code_review_tool branch from 37e2fbb to c1a29c5 Compare February 16, 2017 18:25
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling c1a29c5957cc966760bd4b181fd7eb2c625acf43 on feature/code_review_tool into ** on develop**.

@hweng
Copy link
Contributor Author

hweng commented Feb 16, 2017

@ucsdlib/developers Please review, comments ... Thanks.

jshint:
enabled: false

fail_on_violations: true
Copy link
Member

Choose a reason for hiding this comment

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

👍 is everyone else good with failing on violations?

Copy link
Member

Choose a reason for hiding this comment

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

👍

Copy link
Member

Choose a reason for hiding this comment

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

👍

.rubocop.yml Outdated
- 'app/**/*'

Style/Next:
Enabled: false
Copy link
Member

Choose a reason for hiding this comment

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

Why was this disabled?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Use next to skip iteration instead of a condition? It is fine to me if you want to stick to that.

Copy link
Member

Choose a reason for hiding this comment

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

I was just wondering why it was selectively disabled, since it is a default (and default syntax convention in ruby). I would vote for having it enabled, but it's up to you all of course. @lsitu and @VivianChu any preference? To give context, we're talking about the following:

http://rubocop.readthedocs.io/en/latest/cops_style/#stylenext

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mcritchlow Yeah, here are some comments from other folks including bbatsov about this cop: rubocop/rubocop#1238

Copy link
Member

Choose a reason for hiding this comment

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

It's fine to have it enabled. I got it enabled for dmr and use next to skip iteration.

Copy link
Member

Choose a reason for hiding this comment

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

I am fine to have it enable too.

Copy link
Member

Choose a reason for hiding this comment

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

@hweng yeah, there are some examples in that issue I could see being annoying to have described as a "failure", since some of those are subjectively better syntax than using next.

Generally it seems like good practice to use next as a guard clause, though if it got annoying or we had use cases like the ones mentioned crop up, we could always disable again or experiment with the MinBodyLength setting? Just a thought.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mcritchlow Sounds fine to me, I will enable it now as you all voted it.
Just provide some of other folk's experience so that we could realize both sides of it.
And as you mentioned, we could always disable it if it is getting annoying.

@hweng hweng force-pushed the feature/code_review_tool branch from c1a29c5 to 4da6503 Compare February 21, 2017 18:59
@hweng
Copy link
Contributor Author

hweng commented Feb 21, 2017

@ucsdlib/developers The style/next cop is enabled. Please review and merge it after the CircleCI tests passed. Thanks!

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 4da6503 on feature/code_review_tool into ** on develop**.

@mcritchlow
Copy link
Member

👍

Copy link
Member

@mcritchlow mcritchlow left a comment

Choose a reason for hiding this comment

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

Approving per discussion with @ucsdlib/developers

@mcritchlow mcritchlow merged commit 6364b86 into develop Feb 21, 2017
@mcritchlow mcritchlow deleted the feature/code_review_tool branch February 21, 2017 20:16
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.

5 participants