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:
Arthur
2025-07-23 11:10:56 +02:00
committed by GitHub
parent 778515e9a3
commit 4e1d7e3c8d
3 changed files with 41 additions and 17 deletions

View File

@@ -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