Skip to content

Commit e49ee38

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

File tree

4 files changed

+24
-0
lines changed

4 files changed

+24
-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,5 @@
1+
Remove the cover:
2+
3+
- Loosen the captive screws on the side of the cover.
4+
- Slide the cover toward the back of the computer until the cover clicks
5+
- Lift the cover straight up
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Remove the cover:
2+
3+
* Loosen the captive screws on the side of the cover.
4+
* Slide the cover toward the back of the computer until the cover clicks.
5+
* Lift the cover straight up.

.vale/styles/RedHat/Lists.yml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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:
6+
- list
7+
ignorecase: true
8+
first: '\w+[^.!?]*[.!?]'
9+
second: '\w+[^.!?]*[.!?]'

0 commit comments

Comments
 (0)