diff options
author | Christian Poessinger <christian@poessinger.com> | 2019-10-16 15:33:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-16 15:33:01 +0200 |
commit | 9982023728283b6212bf8820f8634a10c1764317 (patch) | |
tree | 50213104350fdd50b78c8c3e4c03019c8bc9c266 /.vale | |
parent | d5400cd2822539c2e0a1416fa728b942a3cb1b9f (diff) | |
parent | d59ccf6c896c7ae5a5604bc66d79357584745f79 (diff) | |
download | vyos-documentation-9982023728283b6212bf8820f8634a10c1764317.tar.gz vyos-documentation-9982023728283b6212bf8820f8634a10c1764317.zip |
Merge pull request #130 from rebortg/vale
T1731: 1st version to test vale
Diffstat (limited to '.vale')
-rw-r--r-- | .vale | 34 |
1 files changed, 34 insertions, 0 deletions
@@ -0,0 +1,34 @@ +StylesPath = ci/vale +MinAlertLevel = suggestion + +[*.rst] +BasedOnStyles = VyOS + +Google.DateFormat = YES +vale.GenderBias = NO +vale.Hedging = NO +vale.Redundancy = NO +vale.Repetition = YES +vale.Uncomparables = NO +proselint.GenderBias = YES + +# 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 +# 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?%}) |