Skip to content

Commit

Permalink
pw_presubmit: Update non-inclusive words list
Browse files Browse the repository at this point in the history
Add a couple non-inclusive words that have been added by Android.

Change-Id: Ifff920b123498f9197adf62a316b20b8441590e7
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/112692
Pigweed-Auto-Submit: Rob Mohr <mohrr@google.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com>
Reviewed-by: Erik Gilling <konkers@google.com>
  • Loading branch information
mohrr authored and CQ Bot Account committed Sep 30, 2022
1 parent ccd351b commit 7bc5058
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pw_presubmit/py/pw_presubmit/inclusive_language.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
NON_INCLUSIVE_WORDS = [
r'master',
r'slave',
r'(white|gr[ae]y|black)\s*(list|hat)',
r'red[-\s]?line',
r'(white|gr[ae]y|black)[-\s]*(list|hat)',
r'craz(y|ie)',
r'insane',
r'crip+led?',
Expand All @@ -39,6 +40,7 @@
r'her',
r'm[ae]n[-\s]*in[-\s]*the[-\s]*middle',
r'mitm',
r'first[-\s]?class[-\s]?citizen',
]
# inclusive-language: enable

Expand Down

0 comments on commit 7bc5058

Please sign in to comment.