Skip to content

Commit c2eda9b

Browse files
committedMar 31, 2024
feat(rule): ampersand
1 parent fdb0d94 commit c2eda9b

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed
 

‎Prim/Ampersand.yml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
extends: existence
2+
message: "Use 'and' as a separator instead of '&'."
3+
level: warning
4+
nonword: true
5+
tokens:
6+
- '\b\w+\s&\s\w+\b'

‎test/fixtures/Ampersand/.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+
Prim.Ampersand = YES

‎test/fixtures/Ampersand/test.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Ampersand
2+
3+
He labored for the diploma day & night.

‎test/snapshots/Ampersand.log

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
test.md:3:28:Prim.Ampersand:Use 'and' as a separator instead of '&'.

0 commit comments

Comments
 (0)