Skip to content

Conversation

@maxjacobson
Copy link
Contributor

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.

# Ruby

## Rubocop
## RuboCop
Copy link
Contributor

Choose a reason for hiding this comment

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

nice

ruby/README.md Outdated
"rulers": [ 80 ]
```

[external configuration]: https://codeclimate.com/changelog/582495c32c33066f1b00191d
Copy link
Contributor

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!

Copy link
Contributor Author

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.
@ABaldwinHunter
Copy link
Contributor

One minor suggestion. LGTM.

Do we need two LGTMs on styleguide changes as a practice?

@maxjacobson
Copy link
Contributor Author

Do we? I'll solicit another :)

@nporteschaikin
Copy link

Surprised that Rails rules need to be disabled in the default rubocop.yml - LGTM!

@maxjacobson
Copy link
Contributor Author

@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

@maxjacobson maxjacobson merged commit d630cd9 into master Dec 27, 2016
@maxjacobson maxjacobson deleted the mj/enable-rails-cops branch December 27, 2016 17:43
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.

4 participants