Skip to content

False positive in ControlStatementSpacing #201

@erikaxel

Description

@erikaxel

Using slim-lint 0.33.0.

Given the following:

div class="a \
 b"
  - if 1 == 2
    | Hello

slim-lint gives the following false positive:

ControlStatementSpacing: Please add a space after the `-`

It seems to be related to the splitting of lines, because

div class="a b"
  - if 1 == 2
    | Hello

works fine with no warning.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions