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

Change terminology to ForbiddenMethods and AllowedMethods #265

Merged
merged 2 commits into from
Jun 27, 2020

Conversation

jcoyne
Copy link
Contributor

@jcoyne jcoyne commented Jun 23, 2020

Use terminology which is more descriptive and is consistent with the direction of some upstream libraries:
rubocop/rubocop#6467
rails/rails#33681

@jcoyne jcoyne force-pushed the terminology branch 3 times, most recently from dfbcac6 to 927a117 Compare June 23, 2020 14:37
@koic
Copy link
Member

koic commented Jun 23, 2020

This new names looks good, but this change need a mechanism that does not cause an error due to the breaking change.

@jcoyne
Copy link
Contributor Author

jcoyne commented Jun 23, 2020

@koic
Copy link
Member

koic commented Jun 23, 2020

I don't have an answer yet. I was considering this rename, but didn't change it due to the breaking changes yet.

@bbatsov
Copy link
Contributor

bbatsov commented Jun 23, 2020

I guess the simplest way would be to support the old and the new config name for a while, but advertise only the new name and issue some warning if the old one is bound.

@jcoyne
Copy link
Contributor Author

jcoyne commented Jun 23, 2020

I've added a commit to warn about obsolete configs, is this an acceptable approach?

CHANGELOG.md Outdated Show resolved Hide resolved
@koic
Copy link
Member

koic commented Jun 24, 2020

Yeah, the deprecation logic may be tweaked later, anyway I think this approach is acceptable 👍 After merging #266, let's proceed with this :-)

@koic
Copy link
Member

koic commented Jun 24, 2020

#266 has been merged. Can you rebase with the latest master branch?

Use terminology which is more descriptive and is consistent with the direction of some upstream libraries:
rubocop/rubocop#6467
rails/rails#33681
@jcoyne
Copy link
Contributor Author

jcoyne commented Jun 24, 2020

@koic rebased.

@koic koic merged commit 78a36b3 into rubocop:master Jun 27, 2020
@koic
Copy link
Member

koic commented Jun 27, 2020

Thanks!

willfish added a commit to willfish/rubocop-govuk that referenced this pull request Oct 13, 2020
```bash
bundle exec rake
Running RuboCop...
Warning: Rails/SkipsModelValidations does not support Blacklist parameter.

Supported parameters are:

  - Enabled
  - ForbiddenMethods
  - AllowedMethods
```

See rubocop/rubocop-rails#265 and alphagov#112
koic added a commit that referenced this pull request Oct 14, 2020
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.

None yet

4 participants