Skip to content

Commit 371103b

Browse files
committed
feat(rule): required alternatives - handle plural form of use case
1 parent 519cf26 commit 371103b

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

Prim/RequiredAlternatives.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ swap:
2525
url: URL
2626
URL for: URL of
2727
an URL: a URL
28-
usecase: use case
28+
usecases?: use case|use cases

test/fixtures/RequiredAlternatives/test.md

+1
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,4 @@ Hover on an URL to preview the page.
6565

6666
<!-- usecase -->
6767
Can you provide a specific usecase where this technology would be beneficial?
68+
We analyzed the usecases to identify potential improvements.

test/snapshots/RequiredAlternatives.log

+2-1
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,5 @@ test.md:59:76:Prim.RequiredAlternatives:Use 'test case' or 'test cases' instead
2525
test.md:62:17:Prim.RequiredAlternatives:Use 'URL' instead of 'url'.
2626
test.md:63:5:Prim.RequiredAlternatives:Use 'URL of' instead of 'URL for'.
2727
test.md:64:10:Prim.RequiredAlternatives:Use 'a URL' instead of 'an URL'.
28-
test.md:67:28:Prim.RequiredAlternatives:Use 'use case' instead of 'usecase'.
28+
test.md:67:28:Prim.RequiredAlternatives:Use 'use case' or 'use cases' instead of 'usecase'.
29+
test.md:68:17:Prim.RequiredAlternatives:Use 'use case' or 'use cases' instead of 'usecases'.

0 commit comments

Comments
 (0)