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 redundantreturn
statements in Void functions - ๐ The
redundantParens
rule now removes redundant parens around closure arguments - ๐ Fixed parsing error with complex
guard
statements - ๐ Extended
prefersKeyPath
to supportcontains
,allSatisfy
andfilter
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 toif case
orguard case
- โ Added
--report
argument for exporting formatting changes or lint violations as a JSON file - ๐ Improved tab layout in SwiftFormat for Xcode companion app
- โ Added