Skip to content

Commit e52f1cf

Browse files
committed
Added rule for Lists
1 parent 934b05e commit e52f1cf

File tree

4 files changed

+21
-0
lines changed

4 files changed

+21
-0
lines changed

.vale/fixtures/RedHat/Lists/.vale.ini

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
; Vale configuration file to test the `Lists` rule
2+
StylesPath = ../../../styles
3+
MinAlertLevel = suggestion
4+
[*.adoc]
5+
RedHat.Lists = YES
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Remove the cover:
2+
- Loosen the captive screws on the side of the cover.
3+
- Slide the cover toward the back of the computer until the cover clicks
4+
- Lift the cover straight up
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Remove the cover:
2+
- Loosen the captive screws on the side of the cover.
3+
- Slide the cover toward the back of the computer until the cover clicks.
4+
- Lift the cover straight up.

.vale/styles/RedHat/Lists.yml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
extends: conditional
3+
message: "Write lists so that all or none of the items start with complete sentences. If list items comprise only complete sentences, include a period after each sentence. Except in definition lists, do not include any end punctuation if list items comprise only sentence fragments."
4+
level: error
5+
scope: list
6+
ignorecase: true
7+
first: '\w+[^.!?]*[.!?]'
8+
second: '\w+[^.!?]*[.!?]'

0 commit comments

Comments
 (0)