Pattern: Too many empty lines
Issue: -
This rule enforces number of allowed consecutive blank lines.
max
defines the maximal number of 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 overmax
.max-end
defines the maximal number of empty lines allowed at the end of the file. This option takes precedence overmax
.
-
With
empty-lines: {max: 1}
the following code snippet would PASS:
- foo: - 1 - 2 - bar: [3, 4]
the following code snippet would FAIL:
- foo: - 1 - 2 - bar: [3, 4]