Skip to content

Commit

Permalink
feat(rule): required alternatives - URL
Browse files Browse the repository at this point in the history
  • Loading branch information
naiyerasif committed Mar 23, 2024
1 parent fbdd442 commit b268b16
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions compris/RequiredAlternatives.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ swap:
24/7: 24x7
3\-D: 3D
synch: sync
url: URL
URL for: URL of
an URL: a URL
5 changes: 5 additions & 0 deletions fixtures/RequiredAlternatives/test.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,8 @@ The movie was stunning in 3-D.

<!-- synch -->
The team needs to synch their schedules for the upcoming meeting.

<!-- url -->
Share the video url to let others view it online.
The URL for the image file is embedded in the HTML code of the webpage.
Hover on an URL to preview the page.
3 changes: 3 additions & 0 deletions test/expectations/RequiredAlternatives.log
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
test.md:4:34:compris.RequiredAlternatives:Use '24x7' instead of '24/7'.
test.md:7:27:compris.RequiredAlternatives:Use '3D' instead of '3-D'.
test.md:10:19:compris.RequiredAlternatives:Use 'sync' instead of 'synch'.
test.md:13:17:compris.RequiredAlternatives:Use 'URL' instead of 'url'.
test.md:14:5:compris.RequiredAlternatives:Use 'URL of' instead of 'URL for'.
test.md:15:10:compris.RequiredAlternatives:Use 'a URL' instead of 'an URL'.

0 comments on commit b268b16

Please sign in to comment.