Skip to content
This repository was archived by the owner on Jan 10, 2023. It is now read-only.
This repository was archived by the owner on Jan 10, 2023. It is now read-only.

Configuring swift-format's line breaking rule #262

@aqjune

Description

@aqjune

Hi, I'm enjoying swift-format. This is great!

I have a silly question: is it possible to configure line break-ness in this example:

  convenience public init(_ name: String) {
    self
      .init(where: { x in
      x.text == name
    })

I'd like to put self and .init( in the same line, and wonder it is possible to do it with existing configuration.
I like swift-format's other line breaking suggestions, so this is the only case I want to update.
Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions