All Versions
Latest Version
Avg Release Cycle
30 days
Latest Release
66 days ago

Changelog History
Page 12

  • 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
  • v0.39.0 Changes

    February 04, 2019
    • βž• Added redundantFileprivate rule, which replaces fileprivate with private where possible
    • βž• Added redundantExtensionACL rule, to remove redundant access level keywords inside extensions
    • βž• Added typeSugar rule to replace Array, Dictionary and Optional types with shorthand forms
    • βž• Added redundantObjc rule, which removes unnecessary @objc annotations
    • βž• Added β€”selfrequired option for excluding @autoclosure arguments from redundantSelf rule
    • 0️⃣ The isEmpty rule is now enabled by default, as the risk of false positives is fairly low
    • ✨ Enhanced the fileHeader rule with macros for file name and creation date
    • βž• Added AppleScript integration instructions (thanks to @Lutzifer)
  • v0.38.0 Changes

    January 29, 2019
    • βž• Added support for building, running and testing SwiftFormat on Linux
    • βž• Added --swiftversion option for version-specific features
    • βž• Added anyObjectProtocol rule to replace class with AnyObject in protocol declarations
    • βž• Added redundantBreak rule that removes unneeded breaks from switch cases
    • βž• Added strongifiedSelf rule which removed backticks in if letself= self {}
    • 🚚 The redundantReturn rule now removes void returns as well as ones that return a value
    • πŸ“‡ Renamed some option values for consistency
    • The Xcode Extension app now shows tooltips on Options tab