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

Changelog History
Page 16

  • v0.33.3 Changes

    February 21, 2018
    • 🛠 Fixed a bug in the duplicateImports rule that caused imports of specific types from the same module to be incorrectly stripped
    • 🛠 Fixed bugs with how the duplicateImports and sortedImports rules handle imports separated by semicolons or spanning multiple lines
    • 🛠 Fixed a bug with redundantParens rule incorrectly removing parens around tuples whose first and last elements were closures
    • 🛠 Fixed a bug where the redundantParens rule incorrectly removed parens inside compound expressions
  • v0.33.2 Changes

    February 20, 2018
    • The fileHeader rule can now be disabled in an individual file by prefixing header with // swiftformat:disable fileHeader
    • 🛠 Fixed a bug in the specifiers rule that could mangle code if the previous line ended with certain identifiers
    • 🛠 Fixed typo in --insertlines deprecation warning message
  • v0.33.1 Changes

    February 10, 2018
    • 🛠 Fixed bug preventing host app rule configuration from being read by the Xcode extension
    • ➕ Added duplicateImports rule for removing duplicate import statements automatically
    • 🚚 Deprecated --insertlines/--removelines options - enable or disable the specific rules instead
    • 🛠 Fixed deprecation warnings in Swift 4.1 / Xcode 9.3
  • v0.33.0 Changes

    February 01, 2018
    • ➕ Added rules configuration UI to the Xcode Source Editor Extension (thanks @vinceburn and @tonyarnold!)
    • ➕ Added blankLinesAtStartOfScope rule for removing leading blank lines at the start of functions, classes, etc
    • 🛠 Fixed indenting of blank lines within commented code blocks
    • ➕ Added CONTRIBUTING.md
  • v0.32.2 Changes

    January 12, 2018
    • 🛠 Fixed bug with parsing spaces inside interpolated values in multiline string literals
    • ➕ Added instructions for using SwiftFormat on a CI server with Danger
  • v0.32.1 Changes

    December 07, 2017
    • ➕ Added --dryrun option, for testing SwiftFormat without making any file changes
    • 🛠 Fixed Xcode plugin, which was not deployed correctly in the previous release
    • 🛠 Fixed spaceAroundOperators rule not inserting space after a switch case or default clause colon
  • v0.32.0 Changes

    November 29, 2017
    • ➕ Added swiftformat: comment directives for enabling/disabling rules inside a source file (see README for details)
    • ➕ Added blankLinesAroundMark rule, which inserts a blank line before and after a // MARK: comment
    • When using the --self insert option, self is now inserted automatically in more places than it could be before
    • 🛠 Fixed some bugs in the redundantSelf rule that caused self not to be removed in some cases when it should
    • 🔦 Exposed the command-line formatting functions as part of the public API when using the SwiftFormat framework
  • v0.31.0 Changes

    November 24, 2017
    • Switched to a more conventional MIT license
    • ➕ Added strongOutlets rule that removes weak from @IBOutlet properties in accordance with Apple guidelines
    • ➕ Added sortedImports rule for sorting import statements alphabetically
    • 🛠 Fixed warnings in Xcode 9.1 and dropped support for compiling framework with Swift 3.1
    • 🛠 Fixed a bug where a double quote was incorrectly inserted into multiline strings
    • 🛠 Fixed a bug where the --comments ignore option was ignored for comments inside switch statements
    • Code that has been temporarily commented out should no longer be re-indented
  • v0.30.2 Changes

    November 19, 2017
    • 🛠 Fixed incorrect indenting of case statements for cases with where clauses containing < operator
    • 🛠 Fixed bug where parens were incorrectly removed around closures in loop or branch conditions
    • ➕ Added compatibility workaround for self being incorrectly removed in tests that use the Nimble framework
  • v0.30.1 Changes

    November 10, 2017
    • 🛠 Fixed error when parsing a subscript with default value inside a switch statement
    • 🚚 Nil default values are no longer removed inside Codable structs/classes, as this can break the implementation