-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinclusive_language_rubocop.yml
97 lines (94 loc) · 3.27 KB
/
inclusive_language_rubocop.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
Naming/InclusiveLanguage:
Enabled: true
FlaggedTerms:
# Common Business Words and Phrases.
whitelist:
Regex: !ruby/regexp '/white[-_\s]?list/'
Suggestions: ['allowlist', 'passlist', 'permitlist', 'permit']
blacklist:
Regex: !ruby/regexp '/black[-_\s]?list/'
Suggestions: ['banlist', 'blocklist', 'denylist', 'excludelist', 'block']
gre(a)ylist:
Regex: !ruby/regexp '/gr(e|a)y[-_\s]?list/'
Suggestions: ['provisional list', 'list']
dark/light-gre(a)y-list:
Regex: !ruby/regexp '/(dark|light)[-_\s]?gr(e|a)y[-_\s]?list/'
Suggestions: ['non-SDK API lists', 'conditionally blocked', 'max-target-X', 'unsupported']
black/white/gre(a)y-hat:
Regex: !ruby/regexp '/(black|white|gr(e|a)y)[-_\s]?hat/'
Suggestions: ['ethical', 'unethical']
master:
Suggestions: ['primary', 'leader', 'parent']
AllowedRegex:
# Rails master key.
- !ruby/regexp '/master[_\s\.]key/'
slave:
Suggestions: ['replica', 'secondary', 'follower']
first-class citizen:
Suggestions: ['core feature', 'built-in', 'top-level', 'first-class concern', 'core concern']
redline:
Suggestions: ['priority line', 'track changes', 'exception', 'anomaly', 'replacement list']
guru:
Suggestions: ['expert', 'teacher']
# Gender.
her:
WholeWord: true
Suggestions: ['they']
he:
WholeWord: true
Suggestions: ['they']
she:
WholeWord: true
Suggestions: ['them']
him:
WholeWord: true
Suggestions: ['them']
guys:
Suggestions: ['folks']
man-in-the-middle:
Regex: !ruby/regexp '/(man-in-the-middle|man in the middle|MITM)/'
Suggestions: ['person-in-the-middle', 'on-path-attack']
man-hours:
Regex: !ruby/regexp '/man[-_\s]?hours/'
Suggestions: ['person hours']
man-made:
Regex: !ruby/regexp '/man[-_\s]?made/'
Suggestions: ['artificial', 'manufactured', 'synthetic']
man-power:
Regex: !ruby/regexp '/man[-_\s]?power/'
Suggestions: ['staff', 'workforce']
manned:
Suggestions: ['staffed', 'crewed']
grandfather-clause:
Regex: !ruby/regexp '/grand[-_\s]?father[-_\s]?clause/'
Suggestions: ['exempt', 'legacy', 'made an exception']
grandfathered:
Regex: !ruby/regexp '/grand[-_\s]?fathered/'
Suggestions: ['exempt', 'legacy', 'made an exception']
# Physical and Mental Health.
sanity check:
Suggestions: ['check', 'validity check', 'final check', 'quick check']
sane:
Regex: !ruby/regexp '/(san(e|ity))/'
Suggestions: ['valid', 'sensible']
insane:
Regex: !ruby/regexp '/(insan(e|ity))/'
Suggestions: ['invalid', 'insensible']
mental/crazy/bonkers/lunatic:
Regex: !ruby/regexp '/(mental|crazy|bonkers|lunatic)/'
Suggestions: ['baffling']
mad:
WholeWord: true
Suggestions: ['baffling', 'baffled']
crippled:
Suggestions: ['slowed', 'overloaded']
dummy:
Suggestions: ['placeholder', 'mock', 'indicator variable']
dumb:
WholeWord: true
Suggestions: ['unintelligent', 'ignorant']
lame:
WholeWord: true
Suggestions: ['unconvincing', 'inadequate', 'weak']
blind:
Suggestions: ['deprive of understanding', 'camouflage', 'careless of']