Skip to content

Consecutive empty lines (ConsecutiveEmptyLines)

Type Scope Severity Activated
by default
Minutes
to fix
Tags
Code smell BSL
OS
Info Yes 1 badpractice

Parameters

Name Type Description Default value
allowedEmptyLinesCount Integer Maximum allowed consecutive empty lines 1

Description

To separate blocks of code among themselves, insert an empty line.

Inserting 2 or more empty lines does not carry this value and leads to a meaningless increase in the length of the method or module.

Snippets

Diagnostic ignorance in code

// BSLLS:ConsecutiveEmptyLines-off
// BSLLS:ConsecutiveEmptyLines-on

Parameter for config

"ConsecutiveEmptyLines": {
    "allowedEmptyLinesCount": 1
}