Skip to content

Releases: nicklockwood/SwiftFormat

0.47.11

29 Jan 21:26
Compare
Choose a tag to compare
  • Fixed bug with redundandSelf rule sometimes inserting self for a local variable
  • Fixed wrapAttributes rule not working for convenience inits, or vars with private(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

28 Dec 14:31
Compare
Choose a tag to compare
  • 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

26 Dec 16:11
Compare
Choose a tag to compare
  • Fixed bug with redundantType rule removing required type in if 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

10 Dec 22:53
Compare
Choose a tag to compare
  • Fixed additional cases where fileprivate was incorrectly converted to private in extensions
  • Added preliminary support for upcoming async/await syntax

0.47.7

09 Dec 23:26
Compare
Choose a tag to compare
  • Fixed critical bug where fileprivate was incorrectly converted to private in some cases

0.47.6

08 Dec 20:49
Compare
Choose a tag to compare
  • Fixed bug in redundantReturn when the return 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 the trailingClosures rule
  • Added trailingClosures exception for Nimble expect() 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

28 Nov 08:41
Compare
Choose a tag to compare
  • 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

19 Nov 21:54
Compare
Choose a tag to compare
  • 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