Skip to content

Commit

Permalink
feat(rule): simpler alternatives - state-of-the-art
Browse files Browse the repository at this point in the history
  • Loading branch information
naiyerasif committed Mar 30, 2024
1 parent 79ad42b commit 4371a5c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions Prim/SimplerAlternatives.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ action:
name: replace
swap:
approximately: about
state-of-the-art: modern|latest
3 changes: 3 additions & 0 deletions test/fixtures/SimplerAlternatives/test.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@

<!-- approximately -->
The population of the city is approximately 1 million people.

<!-- state-of-the-art -->
This state-of-the-art arena can host 7,000 fans.
3 changes: 2 additions & 1 deletion test/snapshots/SimplerAlternatives.log
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
test.md:4:31:Prim.SimplerAlternatives:Use 'about' instead of 'approximately'.
test.md:4:31:Prim.SimplerAlternatives:Use 'about' instead of 'approximately'.
test.md:6:6:Prim.SimplerAlternatives:Use 'modern' or 'latest' instead of 'state-of-the-art'.

0 comments on commit 4371a5c

Please # to comment.