Releases: nicklockwood/SwiftFormat
Releases · nicklockwood/SwiftFormat
0.48.17
- Fixed bug where
trailingCommas
rule added comma to wrapped capture list with comment - Fixed indenting of closure with wrapped capture list
- Fixed bug where
redundantArguments
rule stripped params used in pattern matching with inline let - Fixed bug where
redundantArguments
failed to detect shadowed param after tuple assignment - Fixed compilation error introduced when removing redundant parens with inner spaces
0.48.16
- Fixed unexpected indentation of next line after a trailing closure
- Fixed unexpected indentation of
try
expressions - Fixed bug where
redundantInit
could cause compilation failure - Fixed indenting of multiple trailing closures
0.48.15
- Fixed false positives in
unusedArgument
rule when usingtry
/await
- Closing paren indent is now balanced for double-indented closures
- Fixed bug where comment directive failed to disable
redundantSelf
rule - Fixed bug where
redundantSelf
exclusion list was not always applied - Fixed regression introduced in 0.48.5 affecting indenting of wrapped closure bodies
- SwiftFormat directives are now recognized in the middle of a comment
0.48.14
- Fixed some cases where function arguments were incorrectly treated as unused
- Fixed incorrect removal of self for some shadowed variables when swift version is >= 5.4
- Fixed indenting of wrapped method chains after a closing paren
- Rules listed in swiftformat comment directives are now case-insensitive
0.48.13
- Fixed bug where
unusedArguments
incorrectly marked shadowed parameters as unused - Fixed wrapped chained functions after an indented closing paren or square bracket
- Fixed Mint install
0.48.12
The redundantSelf
rule now removes self
from shadowed variable references where permitted
- Fixed bug where
self
was not correctly removed on the line following an assignment - Fixed some cases where
self
was incorrectly removed from@dynamicMemberLookup
members - Fixed error raised where removing
self
caused ambiguity with global Swift functions - Function parameters with shadowed names are now correctly marked as unused
- The
--selfrequired
option now applies to members, not just@autoclosure
arguments - Fixed trailing comment placement when using
wrapEnumCases
rule - Fixed indenting of wrapped chained functions after a closing paren or square bracket
- Fixed bug where
some(Void)
was converted tosomeVoid
- Fixed potential range bounds crash in
editDistance()
function - Now uses automatic test discovery on Linux instead of XCTestManifests file
0.48.11
- Fixed parsing error introduced in 0.48.10 involving inline closures inside conditional statements
- Fixed bug where
redundantSelf
could potentially misidentify tuple labels as local variables
0.48.10
- Fixed issue with
redundantBackticks
rule incorrectly removing required backticks around underscore - Fixed parsing error in
redundantSelf
with guard conditions containing inline closures
0.48.9
- Fixed regression introduced in 0.48.7 where parens around prefix expressions were incorrectly removed
0.48.8
- Fixed regression introduced in 0.48.7 where parens around operator literals were incorrectly removed