Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 1.54 KB

ConsecutiveEmptyLines.md

File metadata and controls

37 lines (26 loc) · 1.54 KB

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
}