Skip to content

Commit

Permalink
Merge pull request #12 from ggiesen/fix_colons_headings
Browse files Browse the repository at this point in the history
Fix capitalization following colons in headings
  • Loading branch information
jdkato authored Aug 16, 2021
2 parents 2faeffb + b95d50c commit 9d31bf7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions Google/Colons.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]'
2 changes: 2 additions & 0 deletions Google/Headings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ link: 'https://developers.google.com/style/capitalization#capitalization-in-titl
level: warning
scope: heading
match: $sentence
indicators:
- ':'
exceptions:
- Azure
- CLI
Expand Down
4 changes: 3 additions & 1 deletion fixtures/Headings/test.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@

# Using gRPC

# This vs. heading
# This vs. heading

# This is a heading: This is a subheading

0 comments on commit 9d31bf7

Please sign in to comment.