Browse Source

feat: add capitalization rule for colons in headings

fix/microblocks-feedback
Patrick Gray 4 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' link: 'https://developers.google.com/style/colons'
nonword: true nonword: true
level: warning level: warning
scope: sentence
tokens: tokens:
- ':\s[A-Z]' - ':\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 level: warning
scope: heading scope: heading
match: $sentence match: $sentence
indicators:
- ':'
exceptions: exceptions:
- Azure - Azure
- CLI - CLI

Loading…
Cancel
Save