Use this rule to set a maximal number of allowed consecutive blank lines.

Parameters

max
Defines the maximal number of consecutive empty lines allowed in the document.
max-start
Defines the maximal number of empty lines allowed at the beginning of the file. This option takes precedence over max.
max-end
Defines the maximal number of empty lines allowed at the end of the file. This option takes precedence over max.

Examples

With max = 1 the following code snippet would PASS:

    - foo:
        - 1
        - 2

    - bar1: [3, 4]

    - bar2: [3, 4]

the following code snippet would FAIL:

    - foo:
        - 1
        - 2


    - bar1: [3, 4]

    - bar2: [3, 4]