Closed rehatkathuria closed 3 months ago
Looks like this was complaining about the trailing ,
comma generated by another rule
The wrapCollections rule is not supposed to wrap capture lists, and trailingCommas shouldn't insert a comma into one either. SwiftFormat was confused by the @MainActor
attribute and thought the capture list was an array literal. I'll get this fixed.
@rehatkathuria fixed in 0.53.5
I have the following:
which, when formatting with
--wrapcollections before-first
gives me the following:which in turn gives me the following error:
Expected 'weak', 'unowned', or no specifier in capture list