SwiftFormat v0.49.6 Release Notes

Release Date: 2022-03-15 // 2 months ago
    • 🛠 Fixed bug where redundantParens rule removed required parens in any type expressions
    • 🛠 Fixed whitespace behavior around some/any keywords
    • 🛠 Fixed crash when // swiftformat:sort was applied to an enum with only one case
    • 🏁 SwiftFormat can now be built on Windows

Previous changes from v0.49.5

    • 🛠 Fixed bug where redundantClosure incorrectly inlined throwing closures
    • 🛠 Fixed bug where in --exclude path matching failed when using --stdinpath
    • 🛠 Fixed a bug with typeSugar rule when overriding stdlib types locally in your code
    • Multiline statement braces are now unwrapped if wrapMultilineStatementBraces disabled
    • ➕ Added // swiftformat:sort directive to sort declarations by name
    • You can now use --disable all or --enable all as shorthand for all rules
    • 0️⃣ The rules in the Rules.md file are now grouped by their default/enabled status