mirror of
https://github.com/docker/docs.git
synced 2026-03-27 22:38:54 +07:00
Merge pull request #20727 from dvdksn/improve-vale-tests
vale: relax/improve tests
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
StylesPath = .github/vale
|
||||
StylesPath = _vale
|
||||
MinAlertLevel = suggestion
|
||||
|
||||
Vocab = Docker
|
||||
|
||||
@@ -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 >}})
|
||||
@@ -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
|
||||
@@ -7,4 +7,4 @@ action:
|
||||
params:
|
||||
- Docker
|
||||
tokens:
|
||||
- 'docker(?!/[a-z-]+)'
|
||||
- '[^\[/]docker[^/]'
|
||||
@@ -35,6 +35,7 @@ Ddosify
|
||||
Debootstrap
|
||||
Dev Environments?
|
||||
Django
|
||||
Docker's
|
||||
Docker Build Cloud
|
||||
Docker Business
|
||||
Docker Dasboard
|
||||
Reference in New Issue
Block a user