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

3.0.0 fixup #39

Merged
merged 5 commits into from
Jun 10, 2020
Merged

3.0.0 fixup #39

merged 5 commits into from
Jun 10, 2020

Conversation

no-reply
Copy link

some issues with the style guide i ran into while upgrading Hyrax.

tamsin johnson added 5 commits June 10, 2020 09:39
silences a configuration warning.
we routinely use mixins to define controller actions. this rule tries to
prohibit that. disable it.
don't try to make existing projects change this. they have already changed all
these to match the old enforced style, and the only reason for the change is to
"reduce the number of string instances".

rubocop/rubocop-rails#141
this seems like a functional change, which we won't want to force on
gems. Rubocop provides an `inverse_of: nil` opt-out, but it's probably better
just to keep our style guide out of it altogether.
this rule seems heavy-handed to me, proposing skipping it.
@no-reply
Copy link
Author

this effectively excludes all rules Hyrax violates, except those that can be rubcop -a'd away, and:

  • RSpec/SubjectStub
  • RSpec/RepeatedDescription

these are both harder fixes but are, to my eyes, genuine (and in the case of the first, egregious) violations of good practice.

@bess bess merged commit b532cdc into master Jun 10, 2020
@bess bess deleted the 3.0.0-fixup branch June 10, 2020 17:03
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.

2 participants