Skip to content

Commit

Permalink
feat(rule): add OK as required alternative
Browse files Browse the repository at this point in the history
  • Loading branch information
naiyerasif committed Sep 1, 2024
1 parent 60ea934 commit 01eb17e
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 16 deletions.
1 change: 1 addition & 0 deletions Prim/RequiredAlternatives.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ swap:
HTTPs: HTTPS
in depth: in-depth
(?:OAuth ?2|Oauth): OAuth 2.0
ok: OK
on demand: on-demand
(?:file ?path|path ?name)s?: path|paths
(?:quote mark|quotemark)s?: quotation mark|quotation marks
Expand Down
3 changes: 3 additions & 0 deletions test/fixtures/RequiredAlternatives/test.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ Oauth supports multiple grant types.
<!-- on demand -->
I prefer watching movies on demand.

<!-- OK -->
Is everything ok?

<!-- path -->
Check the file path to locate the document.
Copy and paste the full path names to navigate to the desired folder.
Expand Down
33 changes: 17 additions & 16 deletions test/snapshots/RequiredAlternatives.log
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,20 @@ test.md:72:25:Prim.RequiredAlternatives:Use 'in-depth' instead of 'in depth'.
test.md:75:14:Prim.RequiredAlternatives:Use 'OAuth 2.0' instead of 'OAuth'.
test.md:76:1:Prim.RequiredAlternatives:Use 'OAuth 2.0' instead of 'Oauth'.
test.md:79:26:Prim.RequiredAlternatives:Use 'on-demand' instead of 'on demand'.
test.md:82:11:Prim.RequiredAlternatives:Use 'path' or 'paths' instead of 'file path'.
test.md:83:25:Prim.RequiredAlternatives:Use 'path' or 'paths' instead of 'path names'.
test.md:86:13:Prim.RequiredAlternatives:Use 'quotation mark' or 'quotation marks' instead of 'quote marks'.
test.md:87:5:Prim.RequiredAlternatives:Use 'quotation mark' or 'quotation marks' instead of 'quotemark'.
test.md:90:9:Prim.RequiredAlternatives:Use 'scrollbar' or 'scrollbars' instead of 'scroll bar'.
test.md:91:24:Prim.RequiredAlternatives:Use 'scrollbar' or 'scrollbars' instead of 'scroll-bars'.
test.md:94:19:Prim.RequiredAlternatives:Use 'sync' instead of 'synch'.
test.md:97:5:Prim.RequiredAlternatives:Use 'test case' or 'test cases' instead of 'testcase'.
test.md:98:76:Prim.RequiredAlternatives:Use 'test case' or 'test cases' instead of 'testcases'.
test.md:101:17:Prim.RequiredAlternatives:Use 'URL' instead of 'url'.
test.md:102:5:Prim.RequiredAlternatives:Use 'URL of' instead of 'URL for'.
test.md:103:10:Prim.RequiredAlternatives:Use 'a URL' instead of 'an URL'.
test.md:106:28:Prim.RequiredAlternatives:Use 'use case' or 'use cases' instead of 'usecase'.
test.md:107:17:Prim.RequiredAlternatives:Use 'use case' or 'use cases' instead of 'usecases'.
test.md:110:22:Prim.RequiredAlternatives:Use 'Wi-Fi' instead of 'wifi'.
test.md:111:32:Prim.RequiredAlternatives:Use 'Wi-Fi' instead of 'WiFi'.
test.md:82:15:Prim.RequiredAlternatives:Use 'OK' instead of 'ok'.
test.md:85:11:Prim.RequiredAlternatives:Use 'path' or 'paths' instead of 'file path'.
test.md:86:25:Prim.RequiredAlternatives:Use 'path' or 'paths' instead of 'path names'.
test.md:89:13:Prim.RequiredAlternatives:Use 'quotation mark' or 'quotation marks' instead of 'quote marks'.
test.md:90:5:Prim.RequiredAlternatives:Use 'quotation mark' or 'quotation marks' instead of 'quotemark'.
test.md:93:9:Prim.RequiredAlternatives:Use 'scrollbar' or 'scrollbars' instead of 'scroll bar'.
test.md:94:24:Prim.RequiredAlternatives:Use 'scrollbar' or 'scrollbars' instead of 'scroll-bars'.
test.md:97:19:Prim.RequiredAlternatives:Use 'sync' instead of 'synch'.
test.md:100:5:Prim.RequiredAlternatives:Use 'test case' or 'test cases' instead of 'testcase'.
test.md:101:76:Prim.RequiredAlternatives:Use 'test case' or 'test cases' instead of 'testcases'.
test.md:104:17:Prim.RequiredAlternatives:Use 'URL' instead of 'url'.
test.md:105:5:Prim.RequiredAlternatives:Use 'URL of' instead of 'URL for'.
test.md:106:10:Prim.RequiredAlternatives:Use 'a URL' instead of 'an URL'.
test.md:109:28:Prim.RequiredAlternatives:Use 'use case' or 'use cases' instead of 'usecase'.
test.md:110:17:Prim.RequiredAlternatives:Use 'use case' or 'use cases' instead of 'usecases'.
test.md:113:22:Prim.RequiredAlternatives:Use 'Wi-Fi' instead of 'wifi'.
test.md:114:32:Prim.RequiredAlternatives:Use 'Wi-Fi' instead of 'WiFi'.

0 comments on commit 01eb17e

Please sign in to comment.