summaryrefslogtreecommitdiff
path: root/.vale
diff options
context:
space:
mode:
authorRobert Göhler <github@ghlr.de>2019-11-26 23:05:16 +0100
committerChristian Poessinger <christian@poessinger.com>2019-11-26 23:12:11 +0100
commit586fa9d2936304181552858593a133d9e3a90a97 (patch)
tree6fc796029ead94a3d5a708d13a878489ea73f3ff /.vale
parent55c2c45480a025b524a2145881eb685c38983770 (diff)
downloadvyos-documentation-586fa9d2936304181552858593a133d9e3a90a97.tar.gz
vyos-documentation-586fa9d2936304181552858593a133d9e3a90a97.zip
Linter: add vale SkippedScopes and change lint level
Diffstat (limited to '.vale')
-rw-r--r--.vale26
1 files changed, 4 insertions, 22 deletions
diff --git a/.vale b/.vale
index a23be76b..05e6de93 100644
--- a/.vale
+++ b/.vale
@@ -1,6 +1,9 @@
StylesPath = ci/vale
MinAlertLevel = suggestion
+SkippedScopes = script, style, pre, figure, img, a, code
+
+
[*.rst]
BasedOnStyles = VyOS
@@ -10,25 +13,4 @@ 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?%})
+proselint.GenderBias = NO