Problem/Motivation
Prevent future use of whitelist and blacklist in code.
Steps to reproduce
Proposed resolution
Add the following words as flag words for cspell.
- blacklist
- blacklisted
- whitelist
- whitelisted
Ignore 'whitelisted' in pipeline.yml. These must be ignored.
Ignore 'whitelist' in path_alias. Create followup to rename usages in path_alias, where it is in a service name and an interface.
Ignore 'blacklist' in autocomplete.js. They will be removed before Drupal 12.0.0.
Remaining tasks
Review
Create the followup
User interface changes
Introduced terminology
API changes
Data model changes
Release notes snippet
Issue fork drupal-3470895
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3470895-add-blacklist-and
changes, plain diff MR !9372
Comments
Comment #3
quietone commentedComment #4
quietone commentedComment #5
smustgrave commentedSeems all instances have been captured and deprecations done for the path_alias stuff already.
Comment #7
longwaveIt looks like chromedriver have deprecated
--whitelisted-ipsand replaced it with--allowed-ips, let's see if this works.Comment #8
quietone commentedRe-ran tests and all are passing.
Comment #11
catchEvery time we tried to replace blacklist/whitelist we ended up with a much clearer API afterwards, so makes sense to disallow them.
Committed/pushed to 11.x, thanks!
Comment #12
jonathan1055 commentedThe follow-up for Contrib #3524087: Add blacklist and whitelist to flagWords for all Contrib CI has just gone live.
Here's the change record
We also added suggested replacements, which are shown in the cspell log.