Skip to content

Commit 8e2705b

Browse files
committed
vale: also check for two-letter acronyms
Signed-off-by: David Karlsson <[email protected]>
1 parent c646f07 commit 8e2705b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

_vale/Docker/Acronyms.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ link: https://docs.docker.com/contribute/style/grammar/#acronyms-and-initialisms
44
level: warning
55
ignorecase: false
66
# Ensures that the existence of 'first' implies the existence of 'second'.
7-
first: '\b([A-Z]{3,5})\b'
8-
second: '(?:\b[A-Z][a-z]+ )+\(([A-Z]{3,5})\)'
7+
first: '\b([A-Z]{2,5})\b'
8+
second: '(?:\b[A-Z][a-z]+ )+\(([A-Z]{2,5})\)'
99
# ... with the exception of these:
1010
exceptions:
1111
- AGPL

_vale/config/vocabularies/Docker/accept.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(?-i)[A-Z]{3,}s
1+
(?-i)[A-Z]{2,}s
22
Admin Console
33
Amazon
44
Anchore

0 commit comments

Comments
 (0)