Skip to content
This repository was archived by the owner on Oct 30, 2026. It is now read-only.

Commit aa02fe7

Browse files
committed
Enable Snapper Vale rules
1 parent aeb67c9 commit aa02fe7

3 files changed

Lines changed: 24 additions & 1 deletion

File tree

‎.vale.ini‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ MinAlertLevel = error
44
Packages = https://github.com/tbhb/vale-ai-tells/releases/download/v1.29.0/ai-tells.zip
55

66
[*.{rst,md}]
7-
BasedOnStyles = ai-tells
7+
BasedOnStyles = ai-tells, snapper
8+
snapper.SemanticLineBreaks = error
89

910
# These rules misclassify established technical, example, or release-note prose
1011
# in this repository. All other ai-tells rules remain enforced.

‎styles/snapper/LongProseLine.yml‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
# Vale style rule: flag prose lines that are suspiciously long.
3+
# Likely indicates wrapped text that should use semantic line breaks.
4+
extends: existence
5+
message: Prose line exceeds 120 characters. Consider running 'snapper' to break at
6+
sentence boundaries.
7+
level: suggestion
8+
scope: paragraph
9+
# This catches lines > 120 chars that contain a period followed by a space.
10+
# Pure code or URLs are less likely to match.
11+
tokens: ['.{120,}']
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
# Vale style rule: flag lines containing multiple sentences.
3+
# These should be broken at sentence boundaries.
4+
extends: existence
5+
message: Line contains multiple sentences. Run 'snapper --check' or reformat with
6+
'snapper --in-place'.
7+
level: warning
8+
scope: paragraph
9+
# Match a sentence-ending punctuation followed by a space and a capital letter
10+
# on the same line (indicating two sentences on one line).
11+
tokens: ['[.!?]\\s+[A-Z]']

0 commit comments

Comments
 (0)