Skip to content

Commit 9e45ed6

Browse files
committed
Adding Vale
1 parent f0b6bc4 commit 9e45ed6

File tree

2 files changed

+39
-6
lines changed

2 files changed

+39
-6
lines changed

.vale.ini

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,29 @@ StylesPath = .vale/styles
22

33
MinAlertLevel = suggestion
44

5-
Packages = RedHat
5+
Packages = RedHat, AsciiDoc, OpenShiftAsciiDoc
66

7-
#ignore files in dirs starting with `.` to avoid raising errors for `.vale/fixtures/*/testinvalid.adoc` files
7+
# Ignore files in dirs starting with `.` to avoid raising errors for `.vale/fixtures/*/testinvalid.adoc` files
88
[[!.]*.adoc]
9-
BasedOnStyles = RedHat
9+
BasedOnStyles = RedHat, AsciiDoc, OpenShiftAsciiDoc
1010

11-
#optional: pass doc attributes to asciidoctor before linting
12-
#[asciidoctor]
13-
#openshift-enterprise = YES
11+
# Disabling rules (NO)
12+
RedHat.ReleaseNotes = NO
13+
14+
# Use local OpenShiftDocs Vocab terms
15+
Vale.Terms = YES
16+
Vale.Avoid = YES
17+
18+
# Disable module specific rules
19+
OpenShiftAsciiDoc.ModuleContainsParentAssemblyComment = NO
20+
OpenShiftAsciiDoc.NoNestingInModules = NO
21+
OpenShiftAsciiDoc.NoXrefInModules = NO
22+
OpenShiftAsciiDoc.IdHasContextVariable = NO
23+
OpenShiftAsciiDoc.NoTocInModules = NO
24+
25+
# Optional: pass doc attributes to asciidoctor before linting
26+
# Temp values are used for Prow CI comment linting only
27+
[asciidoctor]
28+
temp-ifdef = YES
29+
temp-ifndef = NO
30+
temp-ifeval = temp

modules/.vale.ini

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
StylesPath = ../.vale/styles
2+
3+
MinAlertLevel = suggestion
4+
5+
[[!.]*.adoc]
6+
BasedOnStyles = OpenShiftAsciiDoc, AsciiDoc, RedHat
7+
8+
# Use local OpenShiftDocs Vocab terms
9+
Vale.Terms = YES
10+
Vale.Avoid = YES
11+
12+
# Temp values are used for Prow CI comment linting only
13+
[asciidoctor]
14+
temp-ifdef = YES
15+
temp-ifndef = NO
16+
temp-ifeval = temp

0 commit comments

Comments
 (0)