switch to allow/block list terminology throughout code base

allowlist and blocklist are much clearer terms with no cultural baggage.
This changes all "whitelist" references to "allowlist", and all "blacklist"
references to "blocklist".
This commit is contained in:
Hans-Christoph Steiner 2021-06-17 14:46:51 +02:00 committed by Jochen Sprickerhof
parent 8667073188
commit 78d37bb13b
7 changed files with 11 additions and 11 deletions

View file

@ -136,18 +136,18 @@ def scan_source(build_dir, build=metadata.Build()):
count = 0
whitelisted = [
allowlisted = [
'firebase-jobdispatcher', # https://github.com/firebase/firebase-jobdispatcher-android/blob/master/LICENSE
'com.firebaseui', # https://github.com/firebase/FirebaseUI-Android/blob/master/LICENSE
'geofire-android' # https://github.com/firebase/geofire-java/blob/master/LICENSE
]
def is_whitelisted(s):
return any(wl in s for wl in whitelisted)
def is_allowlisted(s):
return any(al in s for al in allowlisted)
def suspects_found(s):
for n, r in NON_FREE_GRADLE_LINES.items():
if r.match(s) and not is_whitelisted(s):
if r.match(s) and not is_allowlisted(s):
yield n
allowed_repos = [re.compile(r'^https://' + re.escape(repo) + r'/*') for repo in [