Skip to content

Formatter splits return and expression onto separate lines #61

@ilgrandeanonimo

Description

@ilgrandeanonimo

I have a function:

func abc() -> Example {
    // ... code ...
    return try contents
        .filter { ... }
}

When I save the auto formatter changes it to:

func abc() -> Example {
    // ... code ...
    return 
        try contents
        .filter { ... }
}

Is that normal? If it is, how could I write it to make it look better? And if it isn’t, how could I disable it?

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