All Versions
180
Latest Version
Avg Release Cycle
8 days
Latest Release
8 days ago

Changelog History
Page 1

  • v0.46.3

    September 20, 2020
    • ๐Ÿ›  Fixed bug where redundantType rule corrupted assignments involving ternary expressions
    • SwiftFormat for Xcode Extension now works in Xcode 12 out of the box
  • v0.46.2

    September 05, 2020
    • ๐Ÿ›  Fixed space being unexpectedly removed before prefix . operator by spaceAroundOperators
    • ๐Ÿ›  Fixed bug where a pair of less-than, greater-than operators could be interpreted as generics
    • ๐Ÿ›  Fixed organizeDeclarations rule mistaking function with nested class for a lifecycle method
  • v0.46.1

    August 30, 2020
    • ๐Ÿ›  Fixed bug where computed property bodies were sometimes wrongly identified as closures
    • ๐Ÿ›  Fixed spurious blank lines in output when formatting
    • The organizeDeclarations rule no longer inserts blank lines at start/end of scopes
    • The organizeDeclarations rule now groups typealiases with types instead of properties
    • ๐Ÿ‘Œ Improved heuristic for matching // MARK: comments in organizeDeclarations
    • ๐Ÿ”ง Configuration file now allows line continuations using \ delimiter
  • v0.46.0

    August 28, 2020
    • โž• Added organizeDeclarations rule for grouping and organizing type members
    • โž• Added wrapEnumCases rule for wrapping enum cases onto separate lines
    • โž• Added wrapSwitchCases rule for wrapping switch cases onto separate lines
    • โž• Added initCoderUnavailable rule for marking stub init(coder:) implementations as unavailable
    • โž• Added redundantType rule for removing redundant type annotations from variable declarations
    • โž• Added search filter bar for rules in SwiftFormat for Xcode extension
    • Selection is now preserved correctly in Xcode 12 when using SwiftFormat extension
    • ๐Ÿ›  Fixed indenting of wrapped closure arguments when using --closingparen same-line
    • ๐Ÿ›  Fixed spurious space insertion with spaceAroundOperators rule in some circumstances
    • Switch cases marked with @unknown are now indented automatically instead of being ignored
    • Wrapped method chains now behave more consistently when using --xcodeindentation option
    • โœ‚ Removed deprecated ranges rule, but un-deprecated the ranges option for convenience
    • Single-letter command-line flags now behave more usefully (e.g. -o maps to --output)
    • Spaces are now permitted in comma-delimited command-line arguments
    • โž• Added more helpful feedback for mistyped arguments
  • v0.45.6

    August 12, 2020
    • โž• Added --yodaswap option for more fine-grained control of yodaConditions rule
    • ๐Ÿ›  Fixed indentation of wrapped type declarations when using --xcodeindentation enabled
    • ๐Ÿ›  Fixed alignment of closure braces when using --allman style
  • v0.45.5

    August 09, 2020
    • ๐Ÿ›  Fixed .swiftformat configuration file processing when using --stdinpath option
    • ๐Ÿ›  Fixed bug where conditional imports could be mangled by sortedImports rule
    • ๐Ÿ›  Fixed indenting of braces after throwing function with wrapped return type
    • ๐Ÿ›  Fixed indenting of wrapped in keyword inside closure
  • v0.45.4

    August 08, 2020
    • ๐Ÿ‘Œ Improved indenting of wrapped closure braces when using --allman indenting
    • ๐Ÿ›  Fixed crash in blankLinesBetweenScopes rule when using --linerange argument
    • ๐Ÿ›  Fixed indent rules behavior when using --linerange argument
    • Audited all rules for --linerange compatibility
    • ๐Ÿ‘Œ Improved Format Selection behavior in Swiftformat for Xcode extension
    • ๐Ÿ›  Fixed bug with fileHeader rule stripping formatting comment directives at top of file
    • Documented known issue with preferKeyPath and compactMap() in README file
    • 0๏ธโƒฃ The value for --wrapparameters now defaults to match --wraparguments
    • ๐Ÿ›  Fixed indenting of wrapped guard else
  • v0.45.3

    August 03, 2020
    • โž• Added --linerange command-line argument for partial file formatting or linting
    • โž• Added --varattributes option to complement --funcattributes and --typeattributes
    • ๐Ÿ›  Fixed spurious "Unexpected static/class ..." warning in redundantSelf rule
    • ๐Ÿ›  Fixed bug in tokenIndex() calculation when last line does not end in a linebreak
    • ๐Ÿ›  Fixed bug where self was incorrectly removed inside trailing closures on generic type init
    • Blank lines are no longer indented when using --trimwhitespace nonblank-lines
  • v0.45.2

    August 01, 2020
    • You can now tweak formatting options inside source files using // swiftformat:options ... directive
    • The wrapMultilineStatementBraces rule is now applied to more statement types
    • ๐Ÿ›  Fixed spurious lint warnings due to conflict between braces and wrapMultilineStatementBraces rules
    • ๐Ÿ›  Fixed several bugs in redundantSelf rule relating to for loops
    • ๐Ÿ›  Fixed bug with indenting of closure arguments
    • ๐Ÿ›  Fixed unsafe removal of backticks around init
    • Rules can now raise an error if they encounter malformed code instead of failing silently
    • ๐Ÿ—„ SwiftFormat for Xcode app no longer shows deprecated rules in the rules tab
  • v0.45.1

    July 30, 2020
    • ๐Ÿ›  Fixed bug where preferKeyPath was incorrectly applied to function calls and compound expressions
    • The wrapMultilineStatementBraces rule is now applied to init and subscript braces
    • The wrapAttributes rule now handles init and subscript the same way as functions