Skip to content

File and Method Length Ignore Empty Lines #353

@pypmannetjies

Description

@pypmannetjies

Sometimes it's nice to add new lines to create logical blocks inside a function. It would be great if there were an option to ignore empty lines when doing a line count.

I propose:

{
    "type": "MethodLength",
    "props": {
        "severity": "ERROR",
        "max": 50,
        "ignoreEmptyLines": true 
    }
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions