All Versions
155
Latest Version
Avg Release Cycle
14 days
Latest Release
5 days ago

Changelog History
Page 1

  • v0.44.3

    February 20, 2020
    • 🛠 Fixed incorrect indenting of closing multiline string delimiter
    • 🛠 Fixed bug where redundantReturn rule incorrectly removed return after a brace without leading space
    • 🛠 Fixed edge case where closures without surrounding parentheses were misinterpreted in if statements
    • 🛠 Fixed failure to wrap braces after a struct or init declaration
  • v0.44.2

    February 02, 2020
    • 🛠 Fixed crash in line wrapping logic
    • 🛠 Fixed several cases where braces were not correctly moved according to wrap rule
    • Prevented wrapping of image and color literals
    • 🛠 Fixed bug with trailingClosures rule breaking unwrap operators
  • v0.44.1

    January 26, 2020
    • 🛠 Fixed spaceInsideComments rule mangling preformatted comments with multiple slashes
    • 🛠 Fixed redundantFileprivate breaking code relying on type-inference for init
    • ⏪ Reverted overly aggressive argument wrapping change in 0.44.0
    • 🛠 Fixed redundantParens rule breaking #if statements without space before argument
    • 🛠 Fixed // swiftformat:disable directives not affecting wrap or wrapArguments rules
    • 🛠 Fixed bug where yodaConditions rule caused formatting to never terminate
    • 🛠 Fixed crash in fileHeader rule
  • v0.44.0

    January 15, 2020
    • 👕 Xcode Extension now includes Lint File option
    • Xcode Extension now preserves selection after formatting
    • 👌 Improved range-based formatting in Xcode Extension
    • 🔧 Wrapping of function calls can now be configured separately from function declarations via the --wrapparameters option
    • 🛠 Numerous improvements to wrapping and indenting logic (thanks to @AnthonyMDev for the fixes)
    • 🛠 Fixed indent logic for unbalanced closing parens
    • 🛠 Fixed self being removed incorrectly inside if statements
    • 🛠 Fixed duplicate lint warnings
    • 🛠 Fixed failure to fix indent at start of file
    • 🛠 Fixed reported line index for consecutiveBlankLines rule
  • v0.43.5

    January 04, 2020
    • 🛠 Fixed bug where redundantBreak rule removed entire line if break appeared after a semicolon
    • 🛠 Fixed a couple of cases where redundantSelf failed to remove self as expected
  • v0.43.4

    January 02, 2020
    • 🛠 Fixed regression in indent rule` that could cause multiline strings to become mis-formatted
    • 🛠 Fixed bug in --nospaceoperators option where ..< operator was rejected
    • ➕ Added instructions for installing SwiftFormat for Xcode via Homebrew cask
  • v0.43.3

    December 31, 2019
    • 🗄 Deprecated ranges rule and --ranges option (use --nospaceoperators with spaceAroundOperators rule instead)
    • 🚚 The redundantSelf rule no longer removes self in cases where property requirea backtick escaping
    • 🛠 Fixed bug with --nospaceoperators potentially removing required spaced near linebreaks
    • 🛠 Fixed spurious lint warnings in spaceAroundOperators, indent and wrap rules
    • 👌 Improved wrapping heuristic for closures to avoid splitting expressions if avoidable
    • 🛠 Fixed indenting of closing brace for line-wrapped closures
    • 🛠 Fixed indent rule performance regression introduced in 0.43.2
    • ➕ Added warnings for deprecated options in config file
  • v0.43.2

    December 28, 2019
    • ➕ Added --nospaceoperators option for selectively removing space around specific operators
    • 👍 Allow self in lazy vars when Swift 4 and above
    • 🛠 Fixed spurious lint warning when using a custom header with fileHeader rule
    • 🛠 Fixed bugs with indenting of consecutive comments
    • 🛠 Fixed resolving of macOS aliases when using --symlinks follow
    • ➕ Added explicit stdin parameter option
    • 🛠 Fixed stdin timeout flakiness
    • 🛠 Fixed bug with andOperator replacing && with , inside ViewBuilders
  • v0.43.1

    December 22, 2019
    • 🛠 Fixed indent regression in wrapped let expressions
    • 🛠 Fixed failure to remove return in get accessors
  • v0.43.0

    December 18, 2019
    • ➕ Added per-line warning when running in --lint mode
    • 👕 Significantly improved Xcode integration when running as a build step in --lint mode
    • ➕ Added --lenient option to suppress errors when running in --lint mode
    • 🛠 Fixed bug where required self was sometimes incorrectly removed inside a trailing closure
    • 👌 Improved wrap rule heuristic for prioritizing where a line should be broken
    • 🛠 Fixed bug in typeSugar rule affecting namespaced types