All Versions
Latest Version
Avg Release Cycle
29 days
Latest Release
5 days ago

Changelog History
Page 9

  • v0.40.4 Changes

    March 23, 2019
    • ๐Ÿ”€ Multiple instances of --disable or other comma-delimited config options are now merged instead of replacing previous
    • ๐Ÿšš The redundantParens rule no longer removes explicit double-parens used to suppress warnings inside Selector(...)
    • โšก๏ธ The trailingCommas rule no longer breaks calls to UICollectionView.performBatchUpdates()
    • ๐Ÿ›  Fixed bug in yodaConditions rule that broke KeyPaths
  • v0.40.3 Changes

    March 19, 2019
    • ๐Ÿ›  Fixed some bugs with the redundantFileprivate rule relating to struct members
    • The redundantFileprivate rule no longer affects members required for protocol conformance
    • ๐Ÿ›  Fixed a bug with yodaConditions rule inside ternary expressions
  • v0.40.2 Changes

    March 19, 2019
    • ๐Ÿ›  Fixed a bug where the redundantParens rule incorrectly removed parens in a subscript or function invocation
    • ๐Ÿ›  Fixed a bug with the trailingClosures rule removing parens inside some conditional expressions
    • ๐Ÿ›  Fixed a bug in the yodaConditions rule that broke expressions containing subscripts
    • ๐Ÿ›  Fixed the --swiftversion option, which was being ignored under some circumstances
    • ๐Ÿ›  Fixed bug that caused the --fragment and --conflictmarkers options to be ignored
    • ๐Ÿ›  Fixed a bug in the redundantObjc rule that incorrectly stripped @objc from nested enum types
  • v0.40.1 Changes

    March 16, 2019
    • ๐Ÿ›  Fixed bug where --trailingclosures would incorrectly remove parentheses before an opening brace
    • ๐Ÿ›  Fixed SwiftFormat for Xcode appearance when running in dark mode on macOS 10.14 (Mojave)
  • v0.40.0 Changes

    March 14, 2019
    • โž• Added --trailingclosures option for whitelisting functions that should use trailing closure syntax
    • 0๏ธโƒฃ The trailingClosures rule now only applies to a safe subset of methods by default
    • 0๏ธโƒฃ Enabled trailingClosures rule by default (use --disable trailingClosures to opt out)
    • SwiftFormat now infers values to use for indentation, linebreaks, etc. if the associated rules are disabled
    • โž• Added new yodaConditions rule that moves constant values to the right-hand-side of expressions
    • ๐Ÿ‘• The --dryrun and --lint modes now only list modified files when running in --verbose mode
    • โž• Added an automatic timeout for buggy rules, or if a rule gets stuck when processing malformed input
    • ๐Ÿ›  Fixed a bug in the wrapArguments that could corrupt argument lists containing commented lines
    • ๐Ÿ›  Fixed bug where wrapArguments sometimes rewrapped parenthesized expressions
    • ๐Ÿ“š Rule documentation is now available programmatically via the command-line
    • ๐Ÿ‘Œ Improved command-line UI, providing additional feedback and more detail in error messages
    • ๐Ÿ’ป Simplified SwiftFormat for Xcode app interface (big thanks to @VinceBurn for the UI implementation)
  • v0.39.5 Changes

    March 06, 2019
    • ๐Ÿ›  Fixed bug in braces rule where closing brace was not wrapped onto a new line
    • ๐Ÿ›  Fixed bug with braces rule affecting closures inside a switch statements
    • Relative indentation is now preserved inside multiline comment blocks
    • ๐Ÿ›  Fixed indenting of switch cases using Swift 5's new @unknown attribute
    • ๐Ÿ›  Fixed some errors in documentation and warning messages
    • ๐Ÿ“œ The .swift-version file parser now permits cases like 3.0-PREVIEW-4
    • ๐Ÿ›  Fixed the performance test target, which was broken in Xcode 10.1
  • v0.39.4 Changes

    March 03, 2019
    • โž• Added support for Swift 5's new raw string syntax
    • Now correctly detects .swiftformat and .swift-version files placed anywhere in the input path
    • The swiftformat command-line tool will no longer fail with an error if all matched files were ignored
    • ๐Ÿ›  Fixed bug where braces rule failed to correctly apply Allman indenting to switch statements
    • 0๏ธโƒฃ Disabled the isEmpty rule again by default (you can enable it using --enable isEmpty)
  • v0.39.3 Changes

    February 15, 2019
    • ๐Ÿ›  Fixed a bug with hoistPatternLet rule for switch cases without a space
    • ๐Ÿ›  Fixed a bug in the typeSugar rule when referencing nested types
    • ๐Ÿ”ง The .swiftformat configuration file type is now associated with the SwiftFormat for Xcode app
  • v0.39.2 Changes

    February 14, 2019
    • ๐Ÿ›  Fixed bug with indenting multi-line strings (introduced in 0.39.1)
    • ๐Ÿ›  Fixed redundantParens bug (introduced in 0.39.1)
    • ๐Ÿ“š Corrected documentation for specifiers rule
  • v0.39.1 Changes

    February 12, 2019
    • ๐Ÿ›  Fixed some cases where redundantParens failed to remove redundant parentheses
    • ๐Ÿ›  Fixed rare instance where indent rule could incorrectly indent multiline string literals
    • โž• Added file to the repository, providing permalinks to the documentation for each rule
    • ๐Ÿ“š Rules documentation is now generated automatically from the SwiftFormat source code
    • The Xcode Extension app now shows tooltips for rules in the Rules tab
    • ๐Ÿ›  Fixed unit test failure in certain timezones