-
Notifications
You must be signed in to change notification settings - Fork 5
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
Enable rails cops #52
Conversation
@@ -1,13 +1,60 @@ | |||
# Ruby | |||
|
|||
## Rubocop | |||
## RuboCop |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice
@@ -233,3 +280,5 @@ set shiftwidth=2 | |||
``` | |||
"rulers": [ 80 ] | |||
``` | |||
|
|||
[external configuration]: https://codeclimate.com/changelog/582495c32c33066f1b00191d |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wdyt about linking to the doc instead of the changelog?
I think that makes sense for internal policy but nbd either way - easy to get from changelog to doc in any case, so up to you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oo yea I do prefer that. Updated
I noticed that in our Rails app, we explicitly enable some Rails cops, but without this bit, those cops aren't actually enabled. This change also enables a number of _other_ Rails cops, some of which I suppose we aren't necessarily enthusiastic about. The one I specifically was eager to enable was Rails/ActionFilter... I'd like to open a PR against our Rails apps to use this new flow and see what issues they sniff out and then revisit disabling some cops at that point.
One minor suggestion. LGTM. Do we need two LGTMs on styleguide changes as a practice? |
eefed72
to
55b4eb9
Compare
Do we? I'll solicit another :) |
Surprised that Rails rules need to be disabled in the default |
@nporteschaikin I suppose they don't, since they're disabled by default. I kept that basically to make it explicit that that's what's happening |
I noticed that in our Rails app, we explicitly enable some Rails cops,
but without this bit, those cops aren't actually enabled.
This change also enables a number of other Rails cops, some of which I
suppose we aren't necessarily enthusiastic about.
The one I specifically was eager to enable was Rails/ActionFilter... I'd
like to open a PR against our Rails apps to use this new flow and see
what issues they sniff out and then revisit disabling some cops at that
point.