Skip to content

[SR-12484] Make trailing comma behavior configurable (again) #332

Open
@allevato

Description

@allevato
Previous ID SR-12484
Radar rdar://problem/62201593
Original Reporter @allevato
Type Bug
Additional Detail from JIRA
Votes 2
Component/s swift-format
Labels Bug
Assignee None
Priority Medium

md5: 87a114148682a4a2db0f13538dd1e622

Issue Description:

When we migrated trailing comma correction to the pretty-printer (#120), we unintentionally lost the ability to disable it.

We should make it configurable again and consider a tri-state: do nothing (keep whatever the user wrote), always remove trailing commas, or always add trailing commas.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions