From dd11775986acb5978f34f06f6ce205c4cc32181c Mon Sep 17 00:00:00 2001 From: Patrick Gray Date: Mon, 21 Jun 2021 11:54:33 -0400 Subject: [PATCH] feat: add capitalization rule for colons in headings --- .vale/styles/Google/Colons.yml | 1 + .vale/styles/Google/HeadingColons.yml | 8 ++++++++ .vale/styles/Google/Headings.yml | 2 ++ 3 files changed, 11 insertions(+) create mode 100644 .vale/styles/Google/HeadingColons.yml diff --git a/.vale/styles/Google/Colons.yml b/.vale/styles/Google/Colons.yml index 9a4b4b4a..99363fbd 100644 --- a/.vale/styles/Google/Colons.yml +++ b/.vale/styles/Google/Colons.yml @@ -3,5 +3,6 @@ message: "'%s' should be in lowercase." link: 'https://developers.google.com/style/colons' nonword: true level: warning +scope: sentence tokens: - ':\s[A-Z]' diff --git a/.vale/styles/Google/HeadingColons.yml b/.vale/styles/Google/HeadingColons.yml new file mode 100644 index 00000000..2250d647 --- /dev/null +++ b/.vale/styles/Google/HeadingColons.yml @@ -0,0 +1,8 @@ +extends: existence +message: "'%s' should be in uppercase." +link: 'https://developers.google.com/style/capitalization#capitalization-in-titles-and-headings' +nonword: true +level: warning +scope: heading +tokens: + - ':\s[a-z]' diff --git a/.vale/styles/Google/Headings.yml b/.vale/styles/Google/Headings.yml index 5afb968d..725c60fc 100644 --- a/.vale/styles/Google/Headings.yml +++ b/.vale/styles/Google/Headings.yml @@ -4,6 +4,8 @@ link: 'https://developers.google.com/style/capitalization#capitalization-in-titl level: warning scope: heading match: $sentence +indicators: + - ':' exceptions: - Azure - CLI