All Versions
239
Latest Version
Avg Release Cycle
30 days
Latest Release
66 days ago
Changelog History
Page 12
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
- π Fixed a bug where the
-
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)
- π Fixed bug where
-
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)
- β Added
-
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 aswitch
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 like3.0-PREVIEW-4
- π Fixed the performance test target, which was broken in Xcode 10.1
- π Fixed bug in
-
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 toswitch
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
- π Fixed a bug with
-
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
Rules.md
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
- π Fixed some cases where
-
v0.39.0 Changes
February 04, 2019- β Added
redundantFileprivate
rule, which replacesfileprivate
withprivate
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 fromredundantSelf
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)
- β Added
-
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 replaceclass
withAnyObject
in protocol declarations - β Added
redundantBreak
rule that removes unneeded breaks from switch cases - β Added
strongifiedSelf
rule which removed backticks inif let
self
= 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