Skip to content

Commit 8f8b1e6

Browse files
committed
feat(rules): ambiguity
1 parent 075056a commit 8f8b1e6

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

compris/Ambiguity.yml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
extends: existence
2+
message: "Avoid ambiguity. Don't use '%s'."
3+
level: error
4+
# ignorecase: true
5+
tokens:
6+
- and/or

fixtures/Ambiguity/.vale.ini

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
StylesPath = ../../
2+
3+
MinAlertLevel = suggestion
4+
5+
[*.md]
6+
compris.Ambiguity = YES

fixtures/Ambiguity/test.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Ambiguity
2+
3+
Please attend the conference in person, online, and/or via live stream.

test/expectations/Ambiguity.log

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
test.md:3:49:compris.Ambiguity:Avoid ambiguity. Don't use 'and/or'.

0 commit comments

Comments
 (0)