Merge pull request #20727 from dvdksn/improve-vale-tests

vale: relax/improve tests
This commit is contained in:
David Karlsson
2024-08-29 09:39:12 +02:00
committed by GitHub
20 changed files with 11 additions and 7 deletions

View File

@@ -1,4 +1,4 @@
StylesPath = .github/vale
StylesPath = _vale
MinAlertLevel = suggestion
Vocab = Docker

View File

@@ -1,8 +1,10 @@
[*.md]
# Exclude `{{< ... >}}`, `{{% ... %}}`, [Who]({{< ... >}})
TokenIgnores = ({{[%<] .* [%>]}}.*?{{[%<] ?/.* [%>]}}), \
(\[.+\]\({{< .+ >}}\))
(\[.+\]\({{< .+ >}}\)), \
[^\S\r\n]({{[%<] \w+ .+ [%>]}})\s, \
[^\S\r\n]({{[%<](?:/\*) .* (?:\*/)[%>]}})\s
# Exclude `{{< myshortcode `This is some <b>HTML</b>, ... >}}`
BlockIgnores = (?sm)^({{[%<] [^{]*? [%>]}})\n$, \
BlockIgnores = (?sm)^({{[%<] \w+ [^{]*?\s[%>]}})\n$, \
(?s) *({{< highlight [^>]* ?>}}.*?{{< ?/ ?highlight >}})

View File

@@ -4,16 +4,15 @@ link: https://docs.docker.com/contribute/style/grammar/#acronyms-and-initialisms
level: warning
ignorecase: false
# Ensures that the existence of 'first' implies the existence of 'second'.
first: '\b([A-Z]{3,5})\b'
first: '\b[^!]([A-Z]{3,5})\b'
second: '(?:\b[A-Za-z]+(?: |\n))+\(([A-Z]{3,5})\)'
# ... with the exception of these:
exceptions:
- API
- BIOS
- FUSE
- ARM
- ASP
- AWS
- BIOS
- CLI
- CPU
- CSS
@@ -27,6 +26,7 @@ exceptions:
- DVP
- ELK
- FAQ
- FUSE
- GCC
- GDB
- GET
@@ -55,6 +55,7 @@ exceptions:
- POST
- RAM
- REPL
- REST
- RSA
- SBOM
- SCM

View File

@@ -7,4 +7,4 @@ action:
params:
- Docker
tokens:
- 'docker(?!/[a-z-]+)'
- '[^\[/]docker[^/]'

View File

@@ -35,6 +35,7 @@ Ddosify
Debootstrap
Dev Environments?
Django
Docker's
Docker Build Cloud
Docker Business
Docker Dasboard