SwiftLint --fix --format
not applying Xcode default formatting
#5210
Labels
sourcekit-issue
Issues that are caused by a misbehavior in SourceKit and need to be fixed upstream.
I would assume that the
swiftlint --fix --format
command would apply the Xcode default formatting to the file but how Xcode handles empty lines in regards to whitespace differs from the behavior SwiftLint formatting is applying.Xcode by default aligns empty line indentation to match its scope. The
swiftlint --fix --format
command removes all indentation so there is no whitespace on any empty lines.How can I achieve SwiftLint automatically formatting the Xcode default style so when I go into a file in the future do a Command + A followed by a Control + I, there will be no changes?
The text was updated successfully, but these errors were encountered: