SwiftFormat v0.48.0 Release Notes

Release Date: 2020-04-20 // about 4 years ago
    • โž• Added --emptybraces option to control how empty braces are formatted
    • ๐Ÿšš The redundantReturn rule now removes redundant return statements in Void functions
    • ๐Ÿšš The redundantParens rule now removes redundant parens around closure arguments
    • ๐Ÿ›  Fixed parsing error with complex guard statements
    • ๐Ÿ‘ Extended prefersKeyPath to support contains, allSatisfy and filter methods
    • ๐Ÿ›  Fixed matching of excluded paths containing ../
    • โž• Added support for using globs/wildcards in input paths
    • ๐Ÿ‘• Eliminated false positives in change list when using --lint mode
    • File header comments are now inserted after the shebang/hashbang in executable Swift scripts
    • Xcode Extension now silently ignores rules requiring file info that isn't available to extensions
    • ๐Ÿ›  Fixed bug where wrapEnumCases rule was incorrectly applied to if case or guard case
    • โž• Added --report argument for exporting formatting changes or lint violations as a JSON file
    • ๐Ÿ‘Œ Improved tab layout in SwiftFormat for Xcode companion app