mirror of
https://github.com/docker/docs.git
synced 2026-03-27 06:18:55 +07:00
chore: reduce Vale reporting noise (#23142)
Edit Vale config to be more lenient with generated content. Number of errors: - Before: 5473 - After: 2690
This commit is contained in:
26
.vale.ini
26
.vale.ini
@@ -1,8 +1,25 @@
|
||||
StylesPath = _vale
|
||||
MinAlertLevel = suggestion
|
||||
|
||||
IgnoredScopes = text.frontmatter, code, tt, b, strong, i
|
||||
Vocab = Docker
|
||||
|
||||
# Disable rules for genered content
|
||||
[content/reference/**/**.md]
|
||||
Vale.Spelling = NO
|
||||
Vale.Terms = NO
|
||||
Docker.Capitalization = NO
|
||||
|
||||
[content/manuals/*/release-notes/*.md]
|
||||
Vale.Spelling = NO
|
||||
Vale.Terms = NO
|
||||
Docker.Capitalization = NO
|
||||
|
||||
[content/contribute/*.md]
|
||||
Vale.Spelling = NO
|
||||
Vale.Terms = NO
|
||||
Docker.Capitalization = NO
|
||||
Docker.Exclamation = NO
|
||||
|
||||
[*.md]
|
||||
BasedOnStyles = Vale, Docker
|
||||
# Exclude `{{< ... >}}`, `{{% ... %}}`, [Who]({{< ... >}})
|
||||
@@ -15,10 +32,3 @@ TokenIgnores = ({{[%<] .* [%>]}}.*?{{[%<] ?/.* [%>]}}), \
|
||||
# Exclude `{{< myshortcode `This is some <b>HTML</b>, ... >}}`
|
||||
BlockIgnores = (?sm)^({{[%<] \w+ [^{]*?\s[%>]}})\n$, \
|
||||
(?s) *({{< highlight [^>]* ?>}}.*?{{< ?/ ?highlight >}})
|
||||
|
||||
# Disable rules for genered content
|
||||
# Content is checked upstream
|
||||
[**/{model-cli/docs/reference,content/reference/cli/docker/model}/**.md]
|
||||
BasedOnStyles = Vale
|
||||
Vale.Spelling = NO
|
||||
Vale.Terms = NO
|
||||
|
||||
Reference in New Issue
Block a user