Skip to content

Commit e55e3c7

Browse files
EdwardAngertClaude
and
Claude
committed
fix: replace metric with occurrence in Vale SentenceLength rule
- Switch from invalid 'metrics' key to valid 'occurrence' extension - Simplify sentence length checking to use word count - Fix Vale E201 validation error with invalid metrics configuration - Use well-established pattern for sentence length checking 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 80257f8 commit e55e3c7

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed
Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,8 @@
11
---
2-
# Checks for sentences that are too long but allows a more conversational style
3-
extends: metric
4-
message: "Consider splitting this sentence or simplifying it - it's %s characters long"
5-
link: https://developers.google.com/style/sentence-structure
2+
# Checks for sentences that are too long
3+
extends: occurrence
4+
message: "Try to keep sentences under 40 words."
65
level: suggestion
76
scope: sentence
8-
metrics:
9-
- type: character
10-
min: 10
11-
max: 200 # More generous limit than standard guides
12-
13-
# Note: Exemptions can be handled via TokenIgnores in .vale.ini
14-
# Comment this section as the 'exceptions' key is not valid for the metric extension
7+
max: 40
8+
token: \b(\w+)\b

0 commit comments

Comments
 (0)