Releases: nicklockwood/SwiftFormat
Releases · nicklockwood/SwiftFormat
0.47.11
- Fixed bug with
redundandSelf
rule sometimes insertingself
for a local variable - Fixed
wrapAttributes
rule not working for convenienceinit
s, or vars withprivate(set)
- Fixed bug with indenting of wrapped members when using
--xcodeindentation
mode - Fixed erroneous space being inserted into keyPaths by
spaceAroundOperators
rule - Fixed bug with
--nospaceoperators
affecting custom infix operators with closure operands - Added support for sorting imports by length instead of alphabetically
0.47.10
- The
blankLinesBetweenScopes
no longer inserts a blank line before Sourcery comment directives - Fixed bug where
redundantFileprivate
rule could break code that uses property wrappers - Fixed crash in
parseDeclarations
helper
0.47.9
- Fixed bug with
redundantType
rule removing required type inif let
expressions - Fixed a bug in
organizeDeclarations
when file contains a class-bound protocol - Improved
sortedSwitchCases
ordering - Removed erroneous space inserted into array initializer by the
spaceAroundParens
rule - Comments followed by a continuation character in SwiftFormat config files now handled correctly
- Removed spurious blank lines in console output introduced in 0.47.8
- Improved command-line typo suggestions
0.47.8
- Fixed additional cases where
fileprivate
was incorrectly converted toprivate
in extensions - Added preliminary support for upcoming async/await syntax
0.47.7
- Fixed critical bug where
fileprivate
was incorrectly converted toprivate
in some cases
0.47.6
- Fixed bug in
redundantReturn
when thereturn
statement is not the last line in a block - Fixed sorting of tuple cases when using
sortedSwitchCases
rule - Added
--nevertrailing
option for excluding functions from thetrailingClosures
rule - Added
trailingClosures
exception for Nimbleexpect()
function - The
redundantFileprivate
rule is now applied correctly to extension members - Fixed some bugs with static members when using the
--redundanttype explicit
option - SwiftFormat command line tool is now signed for better compliance with Big Sur
- Updated icon for Big Sur (thanks to Jim Puls for the icon design)
0.47.5
- Added
--redundanttype
option for controlling how redundant types are resolved - Numeric case values are now sorted naturally instead of alphabetically
- Fixed bug where
redundantFileprivate
rule broke trailing-closure inits - Fixed various
enumNamespaces
rule edge-cases - Broken symlinks no longer raise an error if they are ignored in config
- File creation date can now be used in header formats on Linux
- The
--symlinks
option now works correctly on Linux
0.47.4
- Command-line tool now includes an arm64 slice for Apple Silicon
- Increased strictness of grouped extensions logic
- Fixed issue where
markTypes
rule would mistake an import declaration as a type - Fixed some additional bugs with unhoisting pattern let
- Fixed bug with trailing comma being inserted in capture lists
- Added warning when setting options for disabled rules
- Fixed bug with
sortedImports
mangling file header comment - Fixed bug with indenting of multiline comments