github.com/nicklockwood/swiftformat breaking changes
Updated December 4, 2026
On this page
Latest version 0.64.7, released November 14, 2026. Source repository
github.com/nicklockwood/swiftformat 0.64.0 breaking changes
- Removed
CocoaPods distribution
CocoaPods distribution and the prebuilt binary were removed from the repository. Install with Swift Package Manager or release downloads instead. github.com - Renamed
privateStateVariables
The privateStateVariables rule is now named privateSwiftUIDynamicProperties and also covers other SwiftUI dynamic properties in views and view modifiers. Update rule names in your configuration. github.com - Renamed
redundantViewBuilder
The redundantViewBuilder rule is replaced by contentBuilder, which uses the --content-builder and --prefer-content-builder options. Update your configuration to use the new rule. github.com - Behavior changed
redundantExtendedLifetime
The rule now also handles write-only references and underscored assignments, so it may remove code it previously kept. github.com - Default changed
--acronym-visibility
The new acronym-visibility option defaults to internal, which may alter acronym handling in existing code. github.com - Default changed
--excluded-declaration-types
SwiftFormat now excludes .build, Build, and DerivedData directories from formatting and linting by default. github.com - Default changed
--hoist-imports
The new hoist-imports option defaults to hoist, which changes how imports are placed by default. github.com - Default changed
--scope-blank-lines
A new option controls blank lines in function bodies, closures, and blocks; choose remove or preserve. github.com - Default changed
--wrap-single-line-enum-cases
A new option was added with default false, which may change formatting of single-line enum cases only if enabled. github.com
github.com/nicklockwood/swiftformat 0.63.0 breaking changes
- Behavior changed
redundantOptionalBinding
The rule now converts if let x = property into if let property, which changes formatted output for existing code. github.com - Default changed
--single-line-ternary
The default for --single-line-ternary is now convert. Set the option explicitly if you need the previous behavior. github.com - Default changed
--wrapstringinterpolation
The default for --wrapstringinterpolation is now preserve. If you relied on the previous default, set the option explicitly. github.com
github.com/nicklockwood/swiftformat 0.62.0 breaking changes
- Renamed
wrapConditionalBodies
The wrapConditionalBodies rule was split into wrapIfStatementBodies, wrapIfExpressionBodies and wrapGuardStatementBodies, so configurations naming the old rule must be updated. github.com - Behavior changed
noGuardInTests
The noGuardInTests rule now also flags guard-like if statements and suggests try #require for boolean conditions, so affected test code may be changed. github.com - Default changed
isEmpty
The isEmpty rule now runs by default, so existing code may be rewritten unless the rule is disabled. github.com - Default changed
redundantSendable
The redundantSendable rule is now disabled by default, so it must be enabled explicitly to run. github.com
github.com/nicklockwood/swiftformat 0.61.0 breaking changes
- Default changed
--suite-name-format
The default for --suite-name-format is now preserve. Set the option explicitly if you need a different value. github.com
github.com/nicklockwood/swiftformat 0.60.0 breaking changes
- Behavior changed
sortImports
The rule now orders imports by access control level, so existing import ordering will change when formatting. github.com - Behavior changed
swiftTestingTestCaseNames
The rule now formats test suite names in UpperCamelCase, which changes the output of the formatter for existing suites. github.com - Default changed
swiftTestingTestCaseNames
The rule now generates test case names as raw identifiers by default. Check generated test names if you rely on the previous output. github.com
github.com/nicklockwood/swiftformat 0.59.0 breaking changes
- Behavior changed
typeSugar
The rule now keeps explicit Optional<T> only in structs with a synthesized memberwise initializer, so other code may be rewritten differently. github.com - Default changed
blankLinesBetweenImports
This rule now runs by default. Disable it in config to keep the previous behavior. github.com - Default changed
docComments
This rule now runs by default. Disable it in config to keep the previous behavior. github.com - Default changed
emptyExtensions
This rule now runs by default. Disable it in config to keep the previous behavior. github.com - Default changed
environmentEntry
This rule now runs by default. Disable it in config to keep the previous behavior. github.com - Default changed
noForceTryInTests
This rule now runs by default. Disable it in config to keep the previous behavior. github.com - Default changed
noForceUnwrapInTests
This rule now runs by default. Disable it in config to keep the previous behavior. github.com - Default changed
redundantAsync
This rule now runs by default. Disable it in config to keep the previous behavior. github.com - Default changed
redundantEquatable
This rule now runs by default. Disable it in config to keep the previous behavior. github.com - Default changed
redundantMemberwiseInit
This rule now runs by default. Disable it in config to keep the previous behavior. github.com
And 2 more in this version. Sign up to see every change
Older versions
28 older versions, each with its first changes. Sign up to see every change
Show 28 older versions
github.com/nicklockwood/swiftformat 0.58.0 breaking changes
- Renamed
--markdown-files
The --markdown-files option is now set to strict or lenient instead of its previous values; update any configuration that uses the old values. github.com - Renamed
throwingTests
The throwingTests rule is renamed to noForceTryInTests; update rule names in configuration files. github.com
And 3 more in this version.
github.com/nicklockwood/swiftformat 0.57.0 breaking changes
- Renamed
Command-line options now use kebab-case, and some options were renamed for clarity. Old names without dashes still work, but code using renamed options should switch to the new names. github.com
github.com/nicklockwood/swiftformat 0.56.0 breaking changes
- Behavior changed
--wrapeffects
These options now also wrap protocol requirements and closure types, which can change formatted output for existing code. github.com - Behavior changed
blankLinesAtStartOfScope
The rule now also applies to switch cases and closure capture or parameter lists, which can change formatted output for existing code. github.com
And 3 more in this version.
github.com/nicklockwood/swiftformat 0.55.0 breaking changes
- Renamed
--onelineforeach
The confusing --onelineforeach option was renamed to --inlinedforeach. Update any configs that use the old name. github.com - Renamed
--redundanttype
The --redundanttype option was renamed to --propertytypes because it is shared by both property type rules. Update any scripts or configs that use the old name. github.com
And 2 more in this version.
github.com/nicklockwood/swiftformat 0.54.0 breaking changes
- Removed
--varattributes
The --varattributes option was replaced by --storedvarattrs, --computedvarattrs and --complexattrs. Update any command lines or config that use --varattributes. github.com - Behavior changed
--report
Using --report without --reporter now raises an error when the reporter type cannot be inferred. Pass --reporter explicitly if you rely on --report alone. github.com
And 2 more in this version.
github.com/nicklockwood/swiftformat 0.53.0 breaking changes
- Behavior changed
wrapAttributes
The wrapAttributes rule no longer unwraps attributes when the result would exceed --maxwidth, so output for such code changes. github.com - Default changed
blankLineAfterImports
The blankLineAfterImports rule is now enabled by default, so formatting will insert a blank line after imports unless you disable it. github.com
And 2 more in this version.
github.com/nicklockwood/swiftformat 0.52.0 breaking changes
- Renamed
sortedImports
The sortedImports rule is now called sortImports for consistency; update rule names in your configuration. github.com - Renamed
sortedSwitchCases
The sortedSwitchCases rule is now called sortSwitchCases for consistency; update rule names in your configuration. github.com
And 1 more in this version.
github.com/nicklockwood/swiftformat 0.51.0 breaking changes
- Removed
preferDouble
The preferDouble rule is gone, so configurations that enable it no longer have an effect. Remove it from your configuration or use another rule. github.com - Behavior changed
wrapMultilineStatementBraces
The rule now formats multiline statement braces in more cases, so existing formatted code may be rewritten on the next run. github.com
And 1 more in this version.
github.com/nicklockwood/swiftformat 0.50.0 breaking changes
- Behavior changed
Comma-delimited options in descendent .swiftformat config files are no longer merged with parent values. Review nested configs that depended on merging. github.com - Configuration changed
SwiftFormat now requires a minimum of Swift 5.1 to build. Builds with older Swift toolchains will no longer work. github.com
And 1 more in this version.
github.com/nicklockwood/swiftformat 0.49.0 breaking changes
- Default changed
redundantType
Redundant types on properties are no longer removed by default, so formatted output for property declarations may change. github.com
github.com/nicklockwood/swiftformat 0.48.0 breaking changes
- Behavior changed
File header comments are now inserted after the shebang/hashbang line in executable Swift scripts instead of before it. github.com - Behavior changed
redundantParens
The redundantParens rule now removes redundant parentheses around closure arguments, so formatted code may change. github.com
And 1 more in this version.
github.com/nicklockwood/swiftformat 0.47.0 breaking changes
- Behavior changed
Wrapped if, guard, while and similar statements are now indented differently. Check formatted output after upgrading. github.com - Behavior changed
--xcodeindentation
The --xcodeindentation option now behaves differently for Xcode 12. Check formatted output after upgrading. github.com
And 1 more in this version.
github.com/nicklockwood/swiftformat 0.46.0 breaking changes
- Removed
ranges
The deprecated ranges rule is removed. The ranges option is un-deprecated and still available. github.com - Behavior changed
Single-letter flags now map to longer options, for example -o maps to --output. Scripts relying on the old meaning of a single-letter flag must be checked. github.com
github.com/nicklockwood/swiftformat 0.45.0 breaking changes
- Renamed
--empty
The --empty option is renamed to --voidtype; update configuration and command-line usage to the new name. github.com - Renamed
--specifierorder
The --specifierorder configuration option is renamed to --modifierorder; update configuration files to the new name. github.com
And 1 more in this version.
github.com/nicklockwood/swiftformat 0.43.0 breaking changes
- Behavior changed
--lint
Running in --lint mode now emits per-line warnings and works more smoothly as an Xcode build step. Scripts parsing lint output may need to handle the new per-line warnings. github.com
github.com/nicklockwood/swiftformat 0.41.0 breaking changes
- Configuration changed
The CLI now exits with an error when a .swiftformat file contains an invalid option, where it previously ignored that option. Remove or correct any invalid options in .swiftformat files. github.com
github.com/nicklockwood/swiftformat 0.40.0 breaking changes
- Behavior changed
When the rules controlling indentation, linebreaks and similar settings are disabled, SwiftFormat now infers values for them instead of leaving them unset. Output may change for users who disabled those rules. github.com - Behavior changed
--dryrun
In --dryrun mode the list of modified files is printed only when --verbose is also used. Scripts relying on the file list must add --verbose. github.com
And 3 more in this version.
github.com/nicklockwood/swiftformat 0.39.0 breaking changes
- Default changed
isEmpty
The isEmpty rule now runs by default. Users who do not want it must disable it explicitly. github.com
github.com/nicklockwood/swiftformat 0.38.0 breaking changes
- Renamed
Some option values were renamed for consistency. Update any configuration that uses the old option values to the new names. github.com - Behavior changed
redundantReturn
The redundantReturn rule now removes void returns as well as returns that yield a value. Code that relies on those void returns being kept will be reformatted. github.com
github.com/nicklockwood/swiftformat 0.37.0 breaking changes
- Behavior changed
todos
The todos rule now rewrites /// MARK: to // MARK:, because Xcode does not recognize the former. Code relying on the old form will be reformatted. github.com
github.com/nicklockwood/swiftformat 0.36.0 breaking changes
- Behavior changed
--exclude
The --exclude globs now match the whole path rather than a path prefix, so exclude paths that relied on the old prefix matching may stop excluding files and need updating. github.com
github.com/nicklockwood/swiftformat 0.34.0 breaking changes
- Renamed
--wrapelementss
The --wrapelementss option has been renamed to --wrapcollections. Update any configuration or command lines that use the old name. github.com
github.com/nicklockwood/swiftformat 0.32.0 breaking changes
- Behavior changed
--self
With the --self insert option, SwiftFormat now inserts self automatically in more places than before. Code formatted with this option may change on the next run. github.com
github.com/nicklockwood/swiftformat 0.31.0 breaking changes
- Removed
The framework can no longer be compiled with Swift 3.1. Build with a newer Swift version. github.com - Behavior changed
Code that has been temporarily commented out is left at its existing indentation instead of being re-indented. github.com
github.com/nicklockwood/swiftformat 0.30.0 breaking changes
- Behavior changed
Operator function declarations are now formatted with a space between the operator name and the opening paren. Code relying on the previous output may be reformatted on the next run. github.com - Behavior changed
Comments immediately before a default: clause are now indented at the same level as the default keyword. Formatted output for such comments will change. github.com
github.com/nicklockwood/swiftformat 0.29.0 breaking changes
- Behavior changed
The formatter now rewrites specifier order from private(set) public to public private(set). Code relying on the old order in formatting output must be updated. github.com
github.com/nicklockwood/swiftformat 0.28.0 breaking changes
- Behavior changed
SwiftFormat now detects and rejects source files with merge conflict markers. Use the new --conflictmarkers option to ignore them if they clash with a custom operator. github.com
github.com/nicklockwood/swiftformat 0.25.0 breaking changes
- Renamed
stripHeaders
The stripHeaders rule is now fileHeaders, which can strip or replace header comments with a custom template. Update any config or command-line usage of stripHeaders to fileHeaders. github.com
Related packages
- SwiftFormat on CocoaPods
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.