Skip to content

multiElementCollectionTrailingCommas adds comma to line comment when element is a ternary operator #795

Closed
@ahoppen

Description

@ahoppen
[
  1,
  true ? 1 : 2 // some comment
]

Gets formatted to

[
  1,
  true ? 1 : 2  // some comment,
]

Adding the comma to the comment instead of after 2.

rdar://133862349

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