Skip to content

Allow single case on same line as what comes before #29

@jppellet

Description

@jppellet

Sorry, my title is especially vague and uninformative. Here's an example.

list.foreach { elem =>
  /* do something with elem */
}

list.foreach { case (key, value) => // (***)
  /* do something with elem */
}

It would be great if there was an option to keep my standalone case on line *** on the same line (currently it always wraps before "case"), to mimic the style for the non-tuple case, recommended by the Scala Style Guide. It would remove one useless level of indentation.

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