Skip to content

Commit 83c2b06

Browse files
committed
Split DITA Vale to separate config file
1 parent 974677a commit 83c2b06

File tree

2 files changed

+28
-2
lines changed

2 files changed

+28
-2
lines changed

.vale-dita.ini

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
StylesPath = .vale/styles
2+
3+
MinAlertLevel = warning
4+
5+
IgnoredScopes = code, tt, img, url, a, body.id
6+
7+
SkippedScopes = script, style, pre, figure, code, tt, blockquote, listingblock, literalblock, strong, term, xref, link
8+
9+
Packages = https://github.com/jhradilek/asciidoctor-dita-vale/releases/latest/download/AsciiDocDITA.zip
10+
11+
Vocab = Foreman
12+
13+
# Use local Vocab terms
14+
Vale.Terms = YES
15+
Vale.Avoid = YES
16+
17+
# Ignore files in dirs starting with `.` to avoid raising errors for `.vale/fidns_ndotsures/*/testinvalid.adoc` files
18+
[[!.]*.adoc]
19+
20+
BasedOnStyles = AsciiDocDITA
21+
22+
# Match INI files. See: https://docs.errata.ai/vale/scoping
23+
[*.ini]
24+
25+
# Ignore code surrounded by backticks or plus sign, parameters defaults, URLs.
26+
TokenIgnores = (\x60[^\n\x60]+\x60), ([^\n]+=[^\n]*), (\+[^\n]+\+), (http[^\n]+\[), (<[^\n]+>)

.vale.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ IgnoredScopes = code, tt, img, url, a, body.id
66

77
SkippedScopes = script, style, pre, figure, code, tt, blockquote, listingblock, literalblock, strong, term, xref, link
88

9-
Packages = RedHat, AsciiDoc, https://github.com/jhradilek/asciidoctor-dita-vale/releases/latest/download/AsciiDocDITA.zip
9+
Packages = RedHat, AsciiDoc
1010

1111
Vocab = Foreman
1212

@@ -17,7 +17,7 @@ Vale.Avoid = YES
1717
# Ignore files in dirs starting with `.` to avoid raising errors for `.vale/fidns_ndotsures/*/testinvalid.adoc` files
1818
[[!.]*.adoc]
1919

20-
BasedOnStyles = RedHat, AsciiDoc, AsciiDocDITA
20+
BasedOnStyles = RedHat, AsciiDoc
2121

2222
# Match INI files. See: https://docs.errata.ai/vale/scoping
2323
[*.ini]

0 commit comments

Comments
 (0)