1
0
mirror of https://github.com/docker/docs.git synced 2026-10-25 06:09:46 +03:00
Files
docs/_vale/Docker/Exclamation.yml
David Karlsson 77a349bf63 vale: exempt product names ending in '!' from Docker.Exclamation
The Docker.Exclamation rule flags any word followed by an exclamation
point in bare prose, which trips on product names that legitimately end
in '!' such as SDKMAN!. Link text and code are already exempt via
IgnoredScopes, but bare-prose mentions were not.

Add an exceptions list, matched against the word preceding the '!', so
genuine exclamations are still caught while listed product names pass.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-17 12:46:15 +02:00

17 lines
394 B
YAML

extends: existence
message: "Don't use exclamation points in text."
nonword: true
level: error
action:
name: edit
params:
- trim_right
- "!"
# Product names that legitimately end in an exclamation point. List the
# name without the trailing "!" — the exception is matched against the
# word that precedes the exclamation point.
exceptions:
- 'SDKMAN'
tokens:
- '\w+!(?:\s|$)'