Closed glacials closed 7 months ago
@glacials thanks for flagging this, I'll get it fixed. The rule causing the issue is redundantType.
You can use the option --redundanttype inferred
to avoid this problem for now as it basically does the same thing as your workaround.
@glacials fixed in 0.53.6
Thank you!!
Thanks for your hard work on SwiftFormat! This issue is not urgent and feel free to wontfix, but wanted to get it logged.
Issue
I have this code:
Running SwiftFormat makes this change:
which yields this error on the affected line:
This only happens on
@Model
classes.Workaround
To work around the issue, I can remove the type hint and put the fully qualified domain named value back in, which makes SwiftFormat leave it alone:
Thanks for reading! SwiftFormat is the best.