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

Update terminology in http_status.rb #6466

Merged
merged 1 commit into from Nov 12, 2018
Merged

Update terminology in http_status.rb #6466

merged 1 commit into from Nov 12, 2018

Conversation

JuanitoFatas
Copy link
Contributor

@JuanitoFatas JuanitoFatas commented Nov 10, 2018

This Pull Request updates lib/rubocop/cop/rails/http_status.rb.

Permitted is easier to understand and better terminology. I didn't find anyone using this constant, it should be safe to change.

Original motivation, other community efforts examples:


Before submitting the PR make sure the following are checked:

  • Wrote good commit messages.
  • Commit message starts with [Fix #issue-number] (if the related issue exists).
  • Feature branch is up-to-date with master (if not - rebase it).
  • Squashed related commits together.
  • Added tests.
  • Added an entry to the Changelog if the new code introduces user-observable changes. See changelog entry format.
  • The PR relates to only one subject with a clear title
    and description in grammatically correct, complete sentences.
  • Run bundle exec rake default. It executes all tests and RuboCop for itself, and generates the documentation.

Use permitted where applicable
@bbatsov
Copy link
Collaborator

bbatsov commented Nov 12, 2018

Seems to me it would also be very helpful for the community to create some cop about bad names for variables/params/methods/constants.

I can just globally flag such problematic names. Writing such a cop is going to be very easy.

koic added a commit to koic/rubocop that referenced this pull request Nov 3, 2019
### Summary

Follow up rubocop#6464, rubocop#6466, and rubocop#6467.

This PR changes a terminology from `Whitelist` and `Blacklist` to
`Allowlist` and `Denylist`.

This change is an obvious breaking change to some cop options.
So I'd like to introduce it before RuboCop 1.0 if this change is acceptable.

### Other Information

This change has also been made in Rails repository and other repos.
rails/rails#33681
bbatsov pushed a commit that referenced this pull request Nov 5, 2019
### Summary

Follow up #6464, #6466, and #6467.

This PR changes a terminology from `Whitelist` and `Blacklist` to
`Allowlist` and `Denylist`.

This change is an obvious breaking change to some cop options.
So I'd like to introduce it before RuboCop 1.0 if this change is acceptable.

### Other Information

This change has also been made in Rails repository and other repos.
rails/rails#33681
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

2 participants