- Added
--timeoutto configure the rule timeout, which now measures per-thread CPU time where supported and retains a wall-clock limit - Added
--max-concurrent-filesto limit concurrent file discovery and formatting - Added a Code Climate reporter and
--relative-pathsfor text, JSON, and XML lint reports - Added
--wrap-generic-requirementsand--wrap-where-clauseto control wrapping in generic declarations - Added
--doc-comments before-declarations-and-local-functionsto allow doc comments on local functions that follow executable code - Made
wrapFunctionBodies,wrapIfExpressionBodies,wrapIfStatementBodies,wrapLoopBodies, andwrapPropertyBodiesopt-in - Improved
wrapArgumentsbalancing for multiline arguments and fixed indentation of braces andelseafter wrapping a multiline condition - Fixed wrapping of
#ifand#elseifconditions, which must stay on one line - Fixed
ifExpressionsconverting ternaries whose leadingtryorawaitapplies to the branches - Fixed
hoistTryandhoistAwaitmoving effect keywords out of closure capture lists - Fixed
swiftformat:disable:nextdirectives targeting the wrong line after a blank line is inserted above them - Fixed
redundantPublicremovingpublicfrom members of types nested in package extensions - Fixed
redundantOverloadremoving overrides and overloads required by module-qualified conformances in the same file - Fixed
noExplicitOwnershipremoving required ownership modifiers from noncopyable types and theirSelfparameters - Fixed declaration parsing looping when a local type contains nested types or conditional compilation blocks
- Fixed
yodaConditionsseparating macros from their trailing closures - Fixed
redundantReturnleaving redundant bare returns in trailingdoblocks - Fixed
swiftTestingTestCaseNamesgenerating invalid raw identifiers from display names with escape sequences - Fixed indentation of wrapped chains inside multiline string interpolations
- Improved
redundantParenshandling of optionalanyandsometypes in Swift 6.4 - Fixed
redundantMemberwiseInithandling of implicit nil defaults and explicitly typed@Environmentproperties - Fixed
opaqueGenericParametershandling of same-type constraints on associated types - Fixed
modifierOrdermisinterpreting properties namedopen - Fixed
trailingCommasadding commas to bracketed expressions that could be types - Updated
redundantExtendedLifetimeto handle redundant lifetime extensions indeferblocks - Fixed unused-option warnings for rules enabled in configuration files
- Improved snapshot lookup and configuration processing on large repositories, and stopped rewriting unchanged formatting caches
- Optimized macOS release builds for speed and updated the Ruby selection for the GitHub Pages build