-
Notifications
You must be signed in to change notification settings - Fork 107
Open
Description
https://github.com/theforeman/foreman-documentation/blob/master/.vale/styles/foreman-documentation/OneSentencePerLine.yml introduced a project-specific Vale rule to report multiple sentences on one line. Test PR #4468 shows that the rule doesn't report everything it should.
The current rule is as follows:
# Report that a line includes more than one sentence.
---
extends: occurrence
message: "Write one sentence per line."
level: error
scope: paragraph
max: 1
token: '[\w\)\]"][.!?](?: |$)'
It misses some occurrences, as evidenced by #4468.
An alternative I tried was:
# Report that a line includes more than one sentence.
---
extends: occurrence
message: "Write one sentence per line."
level: error
scope: paragraph
max: 1
token: '[.!?](?: |$)'
This alternative reports some false positives, from what I can see it happens when a procedure includes a snippet, like here:
| . From the *Deploy on* list, select your Proxmox compute resource. |
Metadata
Metadata
Assignees
Labels
No labels