Skip to content

Closing parens of function returning a closure put onto wrong line #14

@DivineDominion

Description

@DivineDominion

Played around with Multiliner a bit :)

Given this input:

func applyContentActions(action: AppAction, reducers: [TableActionReducer]) -> (_ documentState: DocumentState) -> DocumentState {
    ...
}

I expected somewhat along these lines::

func applyContentActions(
    action: AppAction,
    reducers: [TableActionReducer]
) -> (_ documentState: DocumentState) -> DocumentState {
    ...
}

Actual output did try to put the parens and the arrow onto a new line, but not the first occurrence:

func applyContentActions(
    action: AppAction,
    reducers: [TableActionReducer]) -> (_ documentState: DocumentState
) -> DocumentState {
    ...
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions