Closed stherold closed 7 months ago
--generictypes
is a list of types that support being extended using a syntax like:
extension Array<Int> { ... }
Instead of
extension Array where Element == Int { ... }
Thx for the hint 👍
But still it SwiftFormat does not correct extension Array where Element == Int { ... }
for me.
@stherold it looks like you are setting the --swiftversion
option to 5, but this syntax is only available since 5.7, so the rule will be disabled.
Ooops, this would have been a long journey without your hint! thank you very much 🎉
Works, thanks 🎉
My config file looks like below (don't wonder I'm in setup mode right now and enable rule by rule). What exactly has to be written in the option
generictypes
?