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

Changelog History
Page 21

  • v0.18 Changes

    November 17, 2016
    • โž• Added --inferoptions command line argument for auto-configuring format options from existing source
    • โž• Added --ifdef command line argument for controlling how #if...#endif clauses are indented
    • โž• Added --hexliterals command line argument for specifying the case to use for hex literals
    • โž• Added redundantGet rule to remove unneeded get {} clause in read-only computed properties
    • ๐Ÿ›  Fixed bug where redundantParens rule merged identifiers on either side of a removed paren
    • ๐Ÿšš redundantParens now removes unneeded parens from expressions and closure arguments
  • v0.17.2 Changes

    November 11, 2016
    • ๐Ÿ›  Fixed critical bug with redundantParens rule removing required parens around a closure
    • ๐Ÿ›  Fixed bug with indenting of wrapped closures after a var declaration
  • v0.17.1 Changes

    November 09, 2016
    • Xcode Source Editor Extension now works with Playground files
    • ๐Ÿ›  Fixed operator being incorrectly formatted when file ends with a single-line comment
    • ๐Ÿ›  Fixed bug where the space at the start of a single line comment could increase after each format
    • ๐Ÿ›  Fixed bug where --cache clear just ignored cache without actually clearing it
    • โž• Added --cache ignore option, which replicates previous --cache clear behavior
  • v0.17 Changes

    November 08, 2016
    • โž• Added cache, allowing SwiftFormat to skip formatting for files that haven't changed
    • โž• Added stripHeaders rule to remove Xcode's copyright header comments (off by default)
    • Disabled linebreakAtEndOfFile rule when formatted text is a fragment
    • ๐Ÿ›  Fixed bug where generics were wrongly formatted if followed by a greater-than sign in the same file
    • ๐Ÿ›  Fixed space incorrectly added after #available, #colorLiteral, etc
    • ๐Ÿ›  Fixed several bugs with indenting of blocks containing wrapped lines
  • v0.16.4 Changes

    November 07, 2016
    • SwiftFormat is now ~3X faster!
    • ๐Ÿ›  Fixed bug with spacing after an @convention() attribute
    • ๐Ÿ›  Fixed bug where the space at the start of a multi-line comment could increase after each format
    • ๐Ÿ›  Fixed bug where wrong indent was applied to wrapped array literal values
    • ๐Ÿ›  Fixed bug where K&R indenting would remove the linebreak before an inline block
  • v0.16.3 Changes

    November 03, 2016
    • ๐Ÿ›  Fixed bug with operators containing chevrons
    • ๐Ÿ›  Fixed wrong indent after where statement in switch case
  • v0.16.2 Changes

    November 03, 2016
    • ๐Ÿ›  Fixed bug with spacing of deeply nested generic arguments, or generic operator functions
    • ๐Ÿ›  Fixed spacing of @autoclosure(escaping) syntax (only used in Swift 2.2)
    • ๐Ÿ›  Fixed bug where (Void) throws -> Void was handled incorrectly
  • v0.16.1 Changes

    November 03, 2016
    • ๐Ÿ›  Fixed critical bug where redundantParens would remove parens from tuple in switch condition
    • ๐Ÿ›  Fixed incorrect spacing around attributes that have arguments, e.g. @convention(block)
    • ๐Ÿ’ป --comments ignore command line option now disables leading space insertion in single-line comments
  • v0.16 Changes

    November 02, 2016
    • โž• Added redundantParens rule to remove parens around if, while and switch conditions
    • โž• Added ability to specify multiple file paths for processing in a single command
    • ๐Ÿ›  Fixed a bug with the formatting of repeat ... while loops
    • โž• Added performance tests
    • ๐Ÿ”จ API refactoring
  • v0.15 Changes

    October 27, 2016
    • โž• Added allman command line option to enable Allman-style indenting instead of default K&R style
    • โž• Added removelines command line option to disable automatic removal of blank lines
    • โž• Added insertlines command line option to disable automatic blank line insertion
    • โž• Added trimwhitespace command line option for disabling truncation of blank lines
    • โž• Added comments command line option for disabling indenting of comments
    • โž• Added experimental command line option for opting-in to bleeding-edge features
    • ๐Ÿ›  Fixed broken commas command line option from version 0.14
    • Made blankLinesBetweenScopes rule less aggressive