Skip to content

OneCasePerLine rule doesn't format properly with existing line breaks #1009

@ebgraham

Description

@ebgraham

before formatting is appplied:

public enum TestEnum: Int {
  case a = 0,
    b = 1,
    c = 2
}

with OneCasePerLine formatting:

public enum TestEnum: Int {
  case a = 0
  case
    b = 1
  case
    c = 2
}

The correct format should be:

public enum TestEnum: Int {
  case a = 0
  case b = 1
  case c = 2
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions