-
Notifications
You must be signed in to change notification settings - Fork 656
Add support of trailing commas in all cases containing round parentheses in Swift 6.1 #2008
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #2008 +/- ##
===========================================
+ Coverage 95.51% 95.79% +0.27%
===========================================
Files 141 141
Lines 25982 26010 +28
===========================================
+ Hits 24817 24916 +99
+ Misses 1165 1094 -71 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Hello @nicklockwood ! Is this released in the latest 0.55.6 version? |
@KonDouvris no, 0.55.6 is just bug fixes. This will be included in the 0.56 release |
Overview
This PR adds support of trailing commas in all cases containing round parentheses
()
in Swift 6.1Implemented earlier
Trailing commas were already supported in:
New features
Trailing commas are now added (or removed) for multi-line lists in the following contexts:
return
,switch
,case let
,let
throw (error,)
,if (true,)
,guard (true,)
,while (true,)
)@Attribute(...)
)#macro(...)
)Trailing commas are not added in:
let x: (Int, String)
)Future plans
I'm planning to add trailing commas in the following contexts in the next PR:
In addition to this, I'm planning to debug and fix failing tests in
TrailingCommasTests
Testing info
To test String interpolation, use this extension: