SwiftFormat breaking changes
Updated December 4, 2026
On this page
Latest version 0.63.1, released September 30, 2026. Source repository
SwiftFormat 0.63.0 breaking changes
- Behavior changed
organizeDeclarations
Associatedtype declarations are categorized differently, which changes how files are reorganized. github.com - Behavior changed
redundantOptionalBinding
Bindings like if let x = property are now converted to if let property, changing formatted output. github.com - Behavior changed
redundantReturn
Bare returns in closures are kept where removing them would create a single-expression body, so formatted output differs. github.com - Default changed
--single-line-ternary
Single-line ternaries are now converted by default, so users who want the old output must set the option explicitly. github.com - Default changed
--wrapstringinterpolation
The default is now preserve, so code that relied on the old default must set the option explicitly to keep prior behavior. github.com
SwiftFormat 0.62.0 breaking changes
- Renamed
wrapConditionalBodies
The wrapConditionalBodies rule is replaced by wrapIfStatementBodies, wrapIfExpressionBodies and wrapGuardStatementBodies, so configurations naming it must be updated. github.com - Behavior changed
noGuardInTests
The noGuardInTests rule also checks guard-like if statements and suggests try #require for boolean conditions, so code that passed before may now be flagged. github.com - Default changed
isEmpty
The isEmpty rule is now on by default, so existing configurations will apply it unless it is disabled. github.com - Default changed
redundantSendable
The redundantSendable rule is now off by default, so users who relied on it running must enable it explicitly. github.com
SwiftFormat 0.61.0 breaking changes
- Default changed
--suite-name-format
The default for --suite-name-format is now preserve. Code or configs that relied on the previous default may format test suite names differently and may need an explicit value. github.com
SwiftFormat 0.60.0 breaking changes
- Behavior changed
sortImports
Imports are now sorted by access control as well, which changes import order in formatted files. github.com - Behavior changed
swiftTestingTestCaseNames
Test suite names are now generated in UpperCamelCase, so formatted output changes for suite names. github.com - Behavior changed
unusedPrivateDeclaration
Private functions marked @Test are no longer removed by this rule, so formatted output keeps them. github.com - Default changed
swiftTestingTestCaseNames
The rule now generates test names as raw identifiers by default. Code that relied on the previous naming may need its config updated. github.com
SwiftFormat 0.59.1 breaking changes
- Behavior changed
docComments
The docComments rule now uses doc comments on nested functions and handles conditional compilation blocks in function bodies, changing its output. github.com - Behavior changed
redundantMemberwiseInit
The redundantMemberwiseInit rule now keeps initializers that have attributes, changing what it removes. github.com
SwiftFormat 0.59.0 breaking changes
- Behavior changed
The closing paren of single-argument functions and collections is now wrapped if needed, which changes formatted output. github.com - Behavior changed
docComments
The docComments rule now keeps the formatting of comments that contain directives, which changes its output. github.com - Behavior changed
redundantMemberwiseInit
The redundantMemberwiseInit rule now supports result builder attributes, which changes what it rewrites. github.com - Behavior changed
typeSugar
The typeSugar rule only preserves explicit Optional<T> in structs with a synthesized memberwise initializer, so other code may be rewritten differently. github.com - Default changed
blankLinesBetweenImports
The blankLinesBetweenImports rule is now enabled by default, so code relying on the old default may be reformatted. github.com - Default changed
docComments
The docComments rule is now enabled by default, so code relying on the old default may be reformatted. github.com - Default changed
emptyExtensions
The emptyExtensions rule is now enabled by default, so code relying on the old default may be reformatted. github.com - Default changed
environmentEntry
The environmentEntry rule is now enabled by default, so code relying on the old default may be reformatted. github.com - Default changed
noForceTryInTests
The noForceTryInTests rule is now enabled by default, so code relying on the old default may be reformatted. github.com - Default changed
noForceUnwrapInTests
The noForceUnwrapInTests rule is now enabled by default, so code relying on the old default may be reformatted. github.com
And 5 more in this version. Sign up to see every change
Older versions
8 older versions, each with its first changes. Sign up to see every change
Show 8 older versions
SwiftFormat 0.58.2 breaking changes
- Behavior changed
redundantInit
The redundantInit rule now also applies to init calls with a single trailing closure, so such calls may be rewritten. github.com
SwiftFormat 0.58.0 breaking changes
- Renamed
--markdown-files
The --markdown-files options were renamed to strict and lenient. Update any scripts or config that pass the old option names. github.com - Renamed
throwingTests
The throwingTests rule was renamed to noForceTryInTests. Update rule names in config files and disable comments. github.com
And 1 more in this version.
SwiftFormat 0.56.0 breaking changes
- Configuration changed
Building SwiftFormat from source needs Swift 5.7+. Users compiling it with an older Swift toolchain must upgrade that toolchain. github.com
SwiftFormat 0.55.0 breaking changes
- Renamed
--onelineforeach
Command lines and configs using --onelineforeach must switch to --inlinedforeach. github.com - Renamed
--redundanttype
Command lines and configs using --redundanttype must switch to --propertytypes. github.com
SwiftFormat 0.54.0 breaking changes
- Renamed
--varattributes
The --varattributes option is replaced by --storedvarattrs, --computedvarattrs and --complexattrs. Update command-line or config usage. github.com - Behavior changed
--report
If the reporter type cannot be inferred, running with --report alone now fails with an error. Pass --reporter explicitly. github.com
And 2 more in this version.
SwiftFormat 0.52.0 breaking changes
- Renamed
sortedImports
The sortedImports rule is now named sortImports for consistency. Update any configuration or disable comments that reference the old name. github.com - Renamed
sortedSwitchCases
The sortedSwitchCases rule is now named sortSwitchCases for consistency. Update any configuration or disable comments that reference the old name. github.com
And 1 more in this version.
SwiftFormat 0.51.0 breaking changes
- Removed
preferDouble
The unsafe preferDouble rule was removed, so configurations that enable it no longer have an effect. Stop referencing it in your configuration. github.com - Behavior changed
redundantSelf
The redundantSelf rule now supports implicit self in eligible closures under Swift 5.8, so it may remove self where it did not before. github.com
And 2 more in this version.
SwiftFormat 0.50.0 breaking changes
- Behavior changed
Comma-delimited options in nested .swiftformat config files replace the parent values instead of being merged with them. Check nested configs that rely on merging. github.com - Behavior changed
SwiftFormat can no longer be built with Swift versions older than 5.1. Use Swift 5.1 or later to build it. github.com
And 1 more in this version.
Related packages
- github.com/nicklockwood/swiftformat on Swift Package Index
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.