diff --git a/.github/styles/Custom/HeadingNestingDepth.yml b/.github/styles/Custom/HeadingNestingDepth.yml new file mode 100644 index 0000000..82359ec --- /dev/null +++ b/.github/styles/Custom/HeadingNestingDepth.yml @@ -0,0 +1,7 @@ +--- +extends: existence +message: 'The subheading "%s" is nested too deeply. The max heading nesting depth is set to 3.' +level: error +scope: raw +raw: + - '(?<=\n)={4,}\s.+' \ No newline at end of file diff --git a/.github/styles/Custom/SingleStatementPerLine.yml b/.github/styles/Custom/SingleStatementPerLine.yml new file mode 100644 index 0000000..f6a683d --- /dev/null +++ b/.github/styles/Custom/SingleStatementPerLine.yml @@ -0,0 +1,9 @@ +--- +extends: occurrence +message: Only use one sentence per line. +level: error +scope: + - paragraph + - list +max: 1 +token: '(? Example of decorated method, here the main `punctuate` method of the `Punctuator` interface. +==== A new too much nestad section + +This is a new section that is too much nested. It should raise several Vale errors as the nesting is too deep and/or there isn`t a sigle line per stetament. + +Normally the word NFRs should raise a spelling issue but it won't as we have added it in the `accept.txt` file. + +You may delete this section once you have tested the vale intgration. + + [[extension-configuration-reference]] == Extension configuration reference