- Added
hoistAwait
andhoistTry
rules to hoist inlineawait
/try
to start of expression - Extended
redundantPattern
rule to remove redundantlet
in patterns - The
wrapMultilineStatementBraces
rules is now applied more consistently - Updated
redundantReturn
/Closure
rules to supportif
/switch
expressions in Swift 5.8 - Added
conditionalAssignment
rule to assign variables usingif
/switch
expressions in Swift 5.8 - Updated
redundantType
rule to supportif
/switch
expression assignment Swift 5.8 - Extended
redundantSelf
rule to support implicitself
in eligible closures in Swift 5.8 - SwiftFormat now ignores
.swiftformat
files when explicit--config
file is provided - Added
--wrapenumcases with-values
option to only wrap enum cases with values - Added
--wrapeffects
option for wrapping function effects - Removed unsafe
preferDouble
rule