Skip to content

Commit ce25904

Browse files
committed
feat(rule): required alternatives - email
1 parent 4ebf37d commit ce25904

File tree

3 files changed

+26
-19
lines changed

3 files changed

+26
-19
lines changed

Prim/RequiredAlternatives.yml

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ swap:
1515
check marks?: checkmark|checkmarks
1616
down time: downtime
1717
(?:dualboot|dual boot): dual-boot
18+
e-mail: email
1819
hard copy: hardcopy
1920
hardcoded: hard-coded
2021
HTTPs: HTTPS

test/fixtures/RequiredAlternatives/test.md

+4
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ His down time hobby was woodworking.
3434
My laptop has a dualboot setup for Windows and Linux.
3535
He configured his computer for a dual boot system with macOS and Windows.
3636

37+
<!-- e-mail -->
38+
I shot you an e-mail earlier.
39+
E-mail me the meeting agenda when you have a chance.
40+
3741
<!-- hard copy -->
3842
Please provide a hard copy of the report.
3943

test/snapshots/RequiredAlternatives.log

+21-19
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,24 @@ test.md:28:12:Prim.RequiredAlternatives:Use 'checkmark' or 'checkmarks' instead
1212
test.md:31:5:Prim.RequiredAlternatives:Use 'downtime' instead of 'down time'.
1313
test.md:34:17:Prim.RequiredAlternatives:Use 'dual-boot' instead of 'dualboot'.
1414
test.md:35:34:Prim.RequiredAlternatives:Use 'dual-boot' instead of 'dual boot'.
15-
test.md:38:18:Prim.RequiredAlternatives:Use 'hardcopy' instead of 'hard copy'.
16-
test.md:41:14:Prim.RequiredAlternatives:Use 'hard-coded' instead of 'hardcoded'.
17-
test.md:44:12:Prim.RequiredAlternatives:Use 'HTTPS' instead of 'HTTPs'.
18-
test.md:47:25:Prim.RequiredAlternatives:Use 'in-depth' instead of 'in depth'.
19-
test.md:50:26:Prim.RequiredAlternatives:Use 'on-demand' instead of 'on demand'.
20-
test.md:53:11:Prim.RequiredAlternatives:Use 'path' or 'paths' instead of 'file path'.
21-
test.md:54:25:Prim.RequiredAlternatives:Use 'path' or 'paths' instead of 'path names'.
22-
test.md:57:9:Prim.RequiredAlternatives:Use 'scrollbar' or 'scrollbars' instead of 'scroll bar'.
23-
test.md:58:24:Prim.RequiredAlternatives:Use 'scrollbar' or 'scrollbars' instead of 'scroll-bars'.
24-
test.md:61:19:Prim.RequiredAlternatives:Use 'sync' instead of 'synch'.
25-
test.md:64:5:Prim.RequiredAlternatives:Use 'test case' or 'test cases' instead of 'testcase'.
26-
test.md:65:76:Prim.RequiredAlternatives:Use 'test case' or 'test cases' instead of 'testcases'.
27-
test.md:68:17:Prim.RequiredAlternatives:Use 'URL' instead of 'url'.
28-
test.md:69:5:Prim.RequiredAlternatives:Use 'URL of' instead of 'URL for'.
29-
test.md:70:10:Prim.RequiredAlternatives:Use 'a URL' instead of 'an URL'.
30-
test.md:73:28:Prim.RequiredAlternatives:Use 'use case' or 'use cases' instead of 'usecase'.
31-
test.md:74:17:Prim.RequiredAlternatives:Use 'use case' or 'use cases' instead of 'usecases'.
32-
test.md:77:22:Prim.RequiredAlternatives:Use 'Wi-Fi' instead of 'wifi'.
33-
test.md:78:32:Prim.RequiredAlternatives:Use 'Wi-Fi' instead of 'WiFi'.
15+
test.md:38:15:Prim.RequiredAlternatives:Use 'email' instead of 'e-mail'.
16+
test.md:39:1:Prim.RequiredAlternatives:Use 'Email' instead of 'E-mail'.
17+
test.md:42:18:Prim.RequiredAlternatives:Use 'hardcopy' instead of 'hard copy'.
18+
test.md:45:14:Prim.RequiredAlternatives:Use 'hard-coded' instead of 'hardcoded'.
19+
test.md:48:12:Prim.RequiredAlternatives:Use 'HTTPS' instead of 'HTTPs'.
20+
test.md:51:25:Prim.RequiredAlternatives:Use 'in-depth' instead of 'in depth'.
21+
test.md:54:26:Prim.RequiredAlternatives:Use 'on-demand' instead of 'on demand'.
22+
test.md:57:11:Prim.RequiredAlternatives:Use 'path' or 'paths' instead of 'file path'.
23+
test.md:58:25:Prim.RequiredAlternatives:Use 'path' or 'paths' instead of 'path names'.
24+
test.md:61:9:Prim.RequiredAlternatives:Use 'scrollbar' or 'scrollbars' instead of 'scroll bar'.
25+
test.md:62:24:Prim.RequiredAlternatives:Use 'scrollbar' or 'scrollbars' instead of 'scroll-bars'.
26+
test.md:65:19:Prim.RequiredAlternatives:Use 'sync' instead of 'synch'.
27+
test.md:68:5:Prim.RequiredAlternatives:Use 'test case' or 'test cases' instead of 'testcase'.
28+
test.md:69:76:Prim.RequiredAlternatives:Use 'test case' or 'test cases' instead of 'testcases'.
29+
test.md:72:17:Prim.RequiredAlternatives:Use 'URL' instead of 'url'.
30+
test.md:73:5:Prim.RequiredAlternatives:Use 'URL of' instead of 'URL for'.
31+
test.md:74:10:Prim.RequiredAlternatives:Use 'a URL' instead of 'an URL'.
32+
test.md:77:28:Prim.RequiredAlternatives:Use 'use case' or 'use cases' instead of 'usecase'.
33+
test.md:78:17:Prim.RequiredAlternatives:Use 'use case' or 'use cases' instead of 'usecases'.
34+
test.md:81:22:Prim.RequiredAlternatives:Use 'Wi-Fi' instead of 'wifi'.
35+
test.md:82:32:Prim.RequiredAlternatives:Use 'Wi-Fi' instead of 'WiFi'.

0 commit comments

Comments
 (0)