-
Notifications
You must be signed in to change notification settings - Fork 335
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
Replace whitelist/blacklist terminology #650
Replace whitelist/blacklist terminology #650
Conversation
We have created an issue in Pivotal Tracker to manage this. Unfortunately, the Pivotal Tracker project is private so you may be unable to view the contents of the story. The labels on this github issue will be updated when the story is started. |
Hi @grantbdev, I found a similar issue related to rails documentation. In that case it looks like they went with the terms Also, I know it would be a breaking change for some, but what do you think about doing a find/replace on the existing terms rather than supporting two alternatives (one of which might be deemed offensive)? |
@kdykeman I'm a fan of using
That sounds good to me. Do you want me to update this PR to change everything at once as a breaking change for a v6? |
@grantbdev I agree it's better to be more verbose to help with clarity.
Yes please... that would be super helpful! |
@kdykeman Thank you for your guidance. PR updated! |
Replace whitelist terminology with the concept of permitted licenses. The new terminology aims to be more intuitive and descriptive of the functionality provided to users. This is a breaking change and users with an existing dependency decisions file will need to find and replace all instances of `whitelist` with `permit`. https://developers.google.com/style/word-list#blacklist rubocop/rubocop#6464
Replace blacklist terminology with the concept of restricted licenses and packages. The new terminology aims to be more intuitive and descriptive of the functionality provided to users. This is a breaking change and users with an existing dependency decisions file will need to find and replace all instances of `blacklist` with `restrict`. https://developers.google.com/style/word-list#blacklist rubocop/rubocop#6464
@grantbdev Please sign the Contributor License Agreement! Click here to manually synchronize the status of this Pull Request. See the FAQ for frequently asked questions. |
@grantbdev Thank you for signing the Contributor License Agreement! |
The goal of this pull request is to replace whitelist/blacklist terminology in the user-facing functionality and in the codebase. It is a good opportunity to clarify the commands since the old terms are not inherently descriptive. rubocop/rubocop#6464 has links to the original motivation and many changes to other gems that have been replacing those words.
This PR introduces breaking changes. The existing subcommands are completely replaced and the output and the expected input for dependency decision files will be different. Users with an existing dependency decisions file will need to find and replace all instances of
blacklist
withrestrict
andwhitelist
withpermit
.