Skip to content

Commit ea4af23

Browse files
committed
Fix ocd greediness
Closes #9.
1 parent b426bd2 commit ea4af23

File tree

4 files changed

+14
-3
lines changed

4 files changed

+14
-3
lines changed

alex/Ablist.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,6 @@ swap:
157157
nuts: rude|malicious|mean|disgusting|incredible|vile|person with symptoms of mental
158158
illness|person with mental illness|person with symptoms of a mental disorder|person
159159
with a mental disorder
160-
o.c.d: has an anxiety disorder|obsessive|pedantic|niggly|picky
161-
o.c.d.: has an anxiety disorder|obsessive|pedantic|niggly|picky
162-
ocd: has an anxiety disorder|obsessive|pedantic|niggly|picky
163160
panic attack: fit of terror|scare
164161
paraplegic: person with paraplegia
165162
psycho: rude|malicious|mean|disgusting|incredible|vile|person with symptoms of mental

alex/OCD.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
extends: substitution
3+
message: When referring to a person, consider using '%s' instead of '%s'.
4+
ignorecase: true
5+
level: warning
6+
nonword: true
7+
action:
8+
name: replace
9+
swap:
10+
'\bocd\b|o\.c\.d\.': has an anxiety disorder|obsessive|pedantic|niggly|picky

fixtures/basic/fail.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,5 @@ Our benefits include a pool table, a fully-stocked beer fridge, and a drama-free
1111

1212
Call 01234567890 to apply.
1313
Candidates with rad beards get extra credit!
14+
15+
I have o.c.d. to day. OCD should be flagged too.

fixtures/basic/pass.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ If you're good at JavaScript then please apply.
66
Thank you.
77

88
Did you review the MRs yet?
9+
10+
The word opcode should pass.

0 commit comments

Comments
 (0)