nicklockwood / SwiftFormat

A command-line tool and Xcode Extension for formatting Swift code
MIT License
7.77k stars 629 forks source link

Problems with `sortTypealiases` rule #1526

Closed DanielCech closed 11 months ago

DanielCech commented 11 months ago

It looks like the sortTypealiases rule is not available. It is mentioned in the list of rules that are available by default but if you call swiftformat --rules it is not mentioned there.

When I tried it on the code it looks like it is not working. My typealiases are not sorted.

public typealias Cache = ScheduleTimeCreating & ScheduleTimesFetching & ChildMeFetching
nicklockwood commented 11 months ago

@DanielCech it's working for me - try swiftformat --version and make sure that you have the latest (0.52.4).

DanielCech commented 11 months ago

@nicklockwood You are right. I used older version of SwiftFormat. Thank you for your help. It works for me as well. Closing.