
This is by design. It's good practice because it means that if you add extra lines, the last line isn't marked as modified in a git commit.
Makes sense, thanks!
FYI, trailing commas can now be disabled.
Thanks!
I suppose this rule should be default disabled. As Allow trailing commas in parameter lists and tuples was rejected in Swift 3.
@rx2130 the proposal to allow trailing commas in parameter lists was rejected, but they didn't remove support for them in array and dictionary literals. SwiftFormat only adds them in the places where they are allowed (unless you've found a bug).
Most helpful comment
FYI, trailing commas can now be disabled.