Skip to content

Commit

Permalink
feat(rule): required alternatives - handle plural form of use case
Browse files Browse the repository at this point in the history
  • Loading branch information
naiyerasif committed Mar 24, 2024
1 parent 519cf26 commit 371103b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Prim/RequiredAlternatives.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ swap:
url: URL
URL for: URL of
an URL: a URL
usecase: use case
usecases?: use case|use cases
1 change: 1 addition & 0 deletions test/fixtures/RequiredAlternatives/test.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,4 @@ Hover on an URL to preview the page.

<!-- usecase -->
Can you provide a specific usecase where this technology would be beneficial?
We analyzed the usecases to identify potential improvements.
3 changes: 2 additions & 1 deletion test/snapshots/RequiredAlternatives.log
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@ test.md:59:76:Prim.RequiredAlternatives:Use 'test case' or 'test cases' instead
test.md:62:17:Prim.RequiredAlternatives:Use 'URL' instead of 'url'.
test.md:63:5:Prim.RequiredAlternatives:Use 'URL of' instead of 'URL for'.
test.md:64:10:Prim.RequiredAlternatives:Use 'a URL' instead of 'an URL'.
test.md:67:28:Prim.RequiredAlternatives:Use 'use case' instead of 'usecase'.
test.md:67:28:Prim.RequiredAlternatives:Use 'use case' or 'use cases' instead of 'usecase'.
test.md:68:17:Prim.RequiredAlternatives:Use 'use case' or 'use cases' instead of 'usecases'.

0 comments on commit 371103b

Please sign in to comment.