Uploaded image for project: 'Swift'
  1. Swift
  2. SR-12484

Make trailing comma behavior configurable (again)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Component/s: swift-format
    • Labels:
      None

      Description

      When we migrated trailing comma correction to the pretty-printer (https://github.com/apple/swift-format/pull/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.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            allevato Tony Allevato
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated: