All Versions
239
Latest Version
Avg Release Cycle
30 days
Latest Release
981 days ago

Changelog History
Page 8

  • v0.44.17 Changes

    July 12, 2020
    • The wrapArguments rule now keeps internal and external parameter labels on the same line
    • Multiline string literals are now indented more consistently
    • ๐Ÿ›  Fixed infinite recursion bug in the redundantSelf rule
    • ๐Ÿ›  Fixed duplicate file path logging in --verbose mode
    • Indented braces are now always balanced
    • โž• Add --stdinpath option, allowing git pre-commit hook to support file header info
    • โšก๏ธ Updated instructions for git pre-commit hook (again)
    • โž• Added inference for --noSpaceOperators option
  • v0.44.16 Changes

    July 02, 2020
    • ๐Ÿ›  Fixed bug in --output stdout processing
    • โช Reverted git pre-commit hook instructions
  • v0.44.15 Changes

    July 01, 2020
    • ๐Ÿ›  Fixed incorrect indenting for double-nested closures
    • โž• Added inference for --wrapparameters option
    • ๐Ÿ›  Fixed incorrect --wraparguments inference
    • The spaceInsideBraces rule will no longer add space between nested braces
    • ๐Ÿ›  Fixed bug in isStartOfClosure() helper
    • ๐Ÿ›  Fixed indent logic for closing braces
    • You can now use --output stdout even when using a file path for input
    • SwiftFormat will now raise an error if missing info needed for fileHeader rule
    • ๐Ÿ‘Œ Improved SwiftFormat for Xcode app icon
    • โšก๏ธ Updated instructions for git pre-commit hook
  • v0.44.14 Changes

    June 23, 2020
    • โž• Added new icon for SwiftFormat for Xcode app (thanks to Vikram Kriplaney for the icon design)
    • ๐Ÿ›  Fixed redundantParens rule stripping parens around #file (used to silence warning in Swift 5.3)
    • ๐Ÿš€ Avoid raising "Malformed .swift-version file" error when using unusual formats (e.g. for beta releases)
    • ๐Ÿ›  Fixed redundantBackticks rule unescaping get inside subscript with where clause
    • ๐Ÿ›  Fixed redundantReturn failing to remove return in function or subscript with where clause
    • ๐Ÿ›  Fixed SwiftFormat for Xcode version number
  • v0.44.13 Changes

    May 28, 2020
    • ๐Ÿ›  Fixed indenting of closing bracket when using wrapArguments rule
    • โž• Added --shortoptionals argument to selectively disable shortening of Optional<T> to T? for properties
    • โž• Added --minversion argument to specify minimum SwiftFormat version to use for a given codebase
  • v0.44.12 Changes

    May 27, 2020
    • ๐Ÿ›  Fixed indenting of chained methods with trailing closures
    • ๐Ÿ”ง SwiftFormat command-line tool now logs the location of .swiftformat configuration files that it encounters
  • v0.44.11 Changes

    May 23, 2020
    • ๐Ÿ›  Fixed failure to terminate when wrapping functions after first parameter
    • First element in a wrapped collection or function is now correctly indented
    • โž• Added workaround for Swift type sugar parsing bug
    • The blankLinesBetweenScopes rule no longer inserts a blank line before an #else block
    • โฌ‡๏ธ Downgraded "No eligible files found" error to a warning
    • โœ‚ Removed "Failed to format any files" error, which was sometimes triggered erroneously
    • ๐Ÿ›  Fixed deprecation warning when building on Linux
  • v0.44.10 Changes

    May 14, 2020
    • ๐Ÿ›  Fixed bug where --specifierorder option values were sorted alphabetically
    • ๐Ÿ›  Fixed a couple of bugs in hoistPatternLet when --patternlet is set to inline
    • โž• Added support for hoisting/unhoisting var and let in do ... catch patterns
    • โž• Added error if --specifierorder contains duplicate values
  • v0.44.9 Changes

    May 05, 2020
    • โž• Added --specifierorder argument for overriding default order used by specifiers rule
    • โž• Added --nowrapoperators argument for preventing wrap rule breaking at specific operators
    • ๐Ÿšš The redundantNilInit rule no longer removes nil defaults from vars in structs using synthesized init
    • ๐Ÿ›  Fixed indenting of trailing comment delimiter in multiline comments
  • v0.44.8 Changes

    May 01, 2020
    • ๐Ÿ›  Fixed a significant performance regression introduced in 0.44.6
    • ๐Ÿ”„ Changed ordering of override keyword in specifier lists to match SwiftLint
    • ๐Ÿ›  Fixed timeout due to infinite recursion when formatting nested comments
    • ๐Ÿ‘• The trailingSpace rule is now called before indent to avoid noise when linting
    • ๐Ÿ›  Fixed bug where unusedArguments rule ignored all arguments if any was already ignored
    • ๐Ÿ›  Fixed redundantParens rule breaking closure argument lists where argument is named self
    • ๐Ÿ›  Fixed indenting of multiline string interpolations
    • ๐Ÿ›  Fixed broken formatting of multiline string interpolations
    • ๐Ÿ›  Fixed crash in wrap rule
    • The wrap rule now favors wrapping function args over wrapping at . operator
    • ๐Ÿ›  Fixed a bug with indenting of pre-formatted multiline comments
    • ๐Ÿ›  Fixed a misleading error message relating to --tabwidth option