Browse Source

feat: add capitalization rule for colons in headings

fix/microblocks-feedback
Patrick Gray 3 years ago
committed by Patrick Gray
parent
commit
dd11775986
  1. 1
      .vale/styles/Google/Colons.yml
  2. 8
      .vale/styles/Google/HeadingColons.yml
  3. 2
      .vale/styles/Google/Headings.yml

1
.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]'

8
.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]'

2
.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

Loading…
Cancel
Save