SwiftFormat v0.46.0 Release Notes

Release Date: 2020-08-28 // over 3 years ago
    • ➕ Added organizeDeclarations rule for grouping and organizing type members
    • ➕ Added wrapEnumCases rule for wrapping enum cases onto separate lines
    • ➕ Added wrapSwitchCases rule for wrapping switch cases onto separate lines
    • ➕ Added initCoderUnavailable rule for marking stub init(coder:) implementations as unavailable
    • ➕ Added redundantType rule for removing redundant type annotations from variable declarations
    • ➕ Added search filter bar for rules in SwiftFormat for Xcode extension
    • Selection is now preserved correctly in Xcode 12 when using SwiftFormat extension
    • 🛠 Fixed indenting of wrapped closure arguments when using --closingparen same-line
    • 🛠 Fixed spurious space insertion with spaceAroundOperators rule in some circumstances
    • Switch cases marked with @unknown are now indented automatically instead of being ignored
    • Wrapped method chains now behave more consistently when using --xcodeindentation option
    • ✂ Removed deprecated ranges rule, but un-deprecated the ranges option for convenience
    • Single-letter command-line flags now behave more usefully (e.g. -o maps to --output)
    • Spaces are now permitted in comma-delimited command-line arguments
    • ➕ Added more helpful feedback for mistyped arguments