Skip to content

Commit

Permalink
Remove check that headings are sentence-case
Browse files Browse the repository at this point in the history
The check doesn’t work in many case and causes a lot of noise in the build log.
For now, we can check this convention ourselves in reviews.
  • Loading branch information
jseldess committed Aug 30, 2018
1 parent f0d2ddc commit 770089f
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .vale.ini
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,25 @@ vale.Redundancy = YES
vale.Repetition = YES
vale.Uncomparables = YES
CockroachDB.Hyperbolic = NO
CockroachDB.HeadingsCase = NO

# Custom block scoping (see the regex101 links for unit tests):
#
#
# Rule #1 (https://regex101.com/r/TJQLJ4/2/tests): Ignore `{%comment%}` blocks. This
# keeps Vale from flagging 'endcomment' as a spelling mistake.
#
# Rule #2 (https://regex101.com/r/7VA2lV/2/tests): Ignore `<div>`s and `<section>`s
# that specify `markdown="1"` since it isn't supported by Vale's Markdown
# Rule #2 (https://regex101.com/r/7VA2lV/2/tests): Ignore `<div>`s and `<section>`s
# that specify `markdown="1"` since it isn't supported by Vale's Markdown
# parser (https://github.com/russross/blackfriday/issues/184).
#
#
# Rule #3 (https://regex101.com/r/NxFflU/1/tests): Ignore `{% include %}`-codeblock
# pairs.
BlockIgnores = (?s)({%\s?comment\s?%}.+?{%\s?endcomment\s?%}), \
(?s)(<(?:div|section)[^>]*markdown="1"[^>]*>.*?</(?:div|section)>), \
(?s)((?: *{% include [^%]+ %}\n)? *~~~.*?~~~~?)

# Custom inline scoping (see the regex101 links for unit tests):
#
#
# Rule #1 (https://regex101.com/r/cTiITH/2/tests): Ignore `{% include %}`s, which
# contain file paths.
TokenIgnores = ({%\s?include\s? {{ [^}]+ }}[^%]+\s?%})
TokenIgnores = ({%\s?include\s? {{ [^}]+ }}[^%]+\s?%})

0 comments on commit 770089f

Please sign in to comment.