Skip to content

Commit

Permalink
feat(rules): ambiguity
Browse files Browse the repository at this point in the history
  • Loading branch information
naiyerasif committed Mar 23, 2024
1 parent 075056a commit 8f8b1e6
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
6 changes: 6 additions & 0 deletions compris/Ambiguity.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
extends: existence
message: "Avoid ambiguity. Don't use '%s'."
level: error
# ignorecase: true
tokens:
- and/or
6 changes: 6 additions & 0 deletions fixtures/Ambiguity/.vale.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
StylesPath = ../../

MinAlertLevel = suggestion

[*.md]
compris.Ambiguity = YES
3 changes: 3 additions & 0 deletions fixtures/Ambiguity/test.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Ambiguity

Please attend the conference in person, online, and/or via live stream.
1 change: 1 addition & 0 deletions test/expectations/Ambiguity.log
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
test.md:3:49:compris.Ambiguity:Avoid ambiguity. Don't use 'and/or'.

0 comments on commit 8f8b1e6

Please sign in to comment.