Skip to content

Commit

Permalink
Fix Google.Spacing
Browse files Browse the repository at this point in the history
See #6.

Signed-off-by: Joseph Kato <[email protected]>
  • Loading branch information
jdkato committed Jan 25, 2021
1 parent 41884f7 commit 064d3cf
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Google/Spacing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ link: 'https://developers.google.com/style/sentence-spacing'
level: error
nonword: true
tokens:
- '[.?!] {2,}[A-Z]'
- '[.?!][A-Z]'
- '[a-z][.?!] {2,}[A-Z]'
- '[a-z][.?!][A-Z]'
4 changes: 3 additions & 1 deletion features/rules.feature
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Feature: Rules
test.md:29:21:Google.WordList:Use 'preceding' instead of 'above'.
test.md:31:1:Google.FirstPerson:Avoid first-person pronouns such as 'I '.
test.md:31:8:Google.FirstPerson:Avoid first-person pronouns such as 'my'.
test.md:31:11:Google.WordList:Use 'phone or mobile phone' instead of 'cell phone'.
test.md:31:11:Google.WordList:Use 'phone' or 'mobile phone' instead of 'cell phone'.
"""

Scenario: Use of contractions
Expand Down Expand Up @@ -98,6 +98,8 @@ Feature: Rules
test.md:27:44:Google.Exclamation:Don't use exclamation points in text.
test.md:29:1:Google.OxfordComma:Use the Oxford comma in 'Apples, pears or'.
test.md:33:5:Google.Exclamation:Don't use exclamation points in text.
test.md:37:21:Google.Spacing:'y. T' should have one space.
test.md:39:42:Google.Exclamation:Don't use exclamation points in text.
"""

Scenario: Foreign words
Expand Down
1 change: 1 addition & 0 deletions fixtures/Punctuation/.vale.ini
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ Google.LyHyphens = YES
Google.Parens = YES
Google.Quotes = YES
Google.Semicolons = YES
Google.Spacing = YES
6 changes: 6 additions & 0 deletions fixtures/Punctuation/test.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,9 @@ Apples, pears or bananas
![An image](../my-image.png)

Hello!

this is a sentence. so is this one.

This sentence is okay. This one is not.

The latest version of .NET Core is awesome!

0 comments on commit 064d3cf

Please sign in to comment.