Skip to content

Commit

Permalink
feat(rule): required alternatives - email
Browse files Browse the repository at this point in the history
  • Loading branch information
naiyerasif committed Mar 31, 2024
1 parent af3fdb2 commit 3d365d0
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 19 deletions.
1 change: 1 addition & 0 deletions Prim/RequiredAlternatives.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ swap:
check marks?: checkmark|checkmarks
down time: downtime
(?:dualboot|dual boot): dual-boot
e-mail: email
hard copy: hardcopy
hardcoded: hard-coded
HTTPs: HTTPS
Expand Down
4 changes: 4 additions & 0 deletions test/fixtures/RequiredAlternatives/test.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ His down time hobby was woodworking.
My laptop has a dualboot setup for Windows and Linux.
He configured his computer for a dual boot system with macOS and Windows.

<!-- e-mail -->
I shot you an e-mail earlier.
E-mail me the meeting agenda when you have a chance.

<!-- hard copy -->
Please provide a hard copy of the report.

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

0 comments on commit 3d365d0

Please sign in to comment.