github.com/realm/swiftlint breaking changes
Updated December 4, 2026
On this page
Latest version 0.65.1, released August 21, 2026. Source repository
Its 0.49.0 release requires macOS 12 or later. macOS end of life dates.
github.com/realm/swiftlint 0.64.0 breaking changes
- Renamed
allow_implicit_init
The allow_implicit_init option of the optional_data_string_conversion rule is now named include_implicit_init. Update configuration files that use the old name. github.com - Configuration changed
ignored_literal_argument_functions
Setting ignored_literal_argument_functions to any explicit list now fully replaces the five built-in defaults, including when set to []. Configurations that added functions on top of the defaults must list the five previously-default... github.com
github.com/realm/swiftlint 0.63.0 breaking changes
- Renamed
redundant_self_in_closure
The rule is renamed to redundant_self, with redundant_self_in_closure kept as a deprecated alias. Update rule names in configuration to redundant_self. github.com - Behavior changed
redundant_self
By default it still checks only closures. Set only_in_closures to false to check all redundant self usages. github.com - Default changed
vertical_whitespace_between_cases
The new separation option defaults to always, which keeps the previous requirement of one blank line between cases. github.com
github.com/realm/swiftlint 0.63.0-rc.2 breaking changes
- Renamed
redundant_self_in_closure
The rule is renamed to redundant_self, with redundant_self_in_closure kept as a deprecated alias. Update rule names in configuration to redundant_self. github.com
github.com/realm/swiftlint 0.62.0 breaking changes
- Behavior changed
sorted_imports
Imports directly adjacent to each other form one group sorted together; imports separated by a non-import statement or empty lines form separate groups. Review existing import ordering. github.com - Configuration changed
Build scripts that reference the swiftlint binary inside SwiftLintBinary.artifactbundle must use the new unversioned path. github.com - Configuration changed
Building SwiftLint needs Swift 6 or later; the Swift Package Manager plugins still work with Swift 5.9. github.com
github.com/realm/swiftlint 0.61.0 breaking changes
- Removed
Bazel releases no longer expose other targets; only TestHelpers and ExtraRulesTests remain exposed. github.com - Removed
operator_whitespace
Its functionality now lives in function_name_whitespace, which also checks func keyword, name and generic spacing. Configurations referring to operator_whitespace must switch to function_name_whitespace. github.com - Behavior changed
If SWIFTLINT_DISABLE_SOURCEKIT prohibits loading libsourcekitdInProc, SourceKit-dependent rules are now disabled with a warning once per rule instead of running. github.com
github.com/realm/swiftlint 0.60.0 breaking changes
- Removed
validates_start_with_lowercase
The boolean values of the validates_start_with_lowercase option were removed. Use the severity levels off, warning or error instead. github.com - Renamed
The swiftlint_linux.zip release archive was renamed to swiftlint_linux_amd64.zip. Update any download scripts that use the old name. github.com - Renamed
redundant_optional_initialization
The rule was replaced by implicit_optional_initialization, which defaults to style always. The old name remains as an alias. github.com - Behavior changed
SwiftLintBuildToolPlugin
The BUILD_WORKSPACE_DIRECTORY content is now printed only in debug builds, so release build output changes. github.com - Default changed
type_body_length
The type_body_length rule now checks struct, class, actor and enum by default. Set excluded_types to an empty array to check extensions and protocols again. github.com - Configuration changed
SwiftLint can only run on macOS 13 or later. Older macOS versions are no longer supported. github.com
Older versions
59 older versions, each with its first changes. Sign up to see every change
Show 59 older versions
github.com/realm/swiftlint 0.59.0 breaking changes
- Behavior changed
The tool no longer tracks correction positions and instead prints the number of corrections applied. Scripts that parse the previous correction output must be updated. github.com
github.com/realm/swiftlint 0.58.0 breaking changes
- Removed
SwiftLint now requires a Swift 5.10 or higher compiler to build. The Swift Package Manager plugins continue to work with Swift 5.9. github.com - Removed
inert_defer
The inert_defer rule has been removed after being deprecated for 2 years. Remove it from your configuration. github.com
And 4 more in this version.
github.com/realm/swiftlint 0.57.0 breaking changes
- Removed
anyobject_protocol
The anyobject_protocol rule was deprecated earlier and is now gone. Code that relies on it or disables it by name must stop doing so. github.com - Renamed
opening_brace.allow_multiline_func
The allow_multiline_func option of the opening_brace rule is renamed to ignore_multiline_function_signatures. Update configuration files that set the old name. github.com
And 3 more in this version.
github.com/realm/swiftlint 0.56.0 breaking changes
- Removed
--in-process-sourcekit
The deprecated --in-process-sourcekit argument has been removed completely. Stop passing it to swiftlint. github.com - Removed
--path
The deprecated --path argument has been removed completely. Stop passing it to swiftlint. github.com
And 1 more in this version.
github.com/realm/swiftlint 0.55.0 breaking changes
- Renamed
SwiftLintBuildToolPlugin
SwiftLintBuildToolPlugin was renamed; users of the Swift Package Manager plugin must switch to SwiftLintCommandPlugin. github.com - Behavior changed
superfluous_disable_command
The superfluous_disable_command rule is now enabled for analyze and warns about superfluous disablement of analyzer rules unless disabled. github.com
And 3 more in this version.
github.com/realm/swiftlint 0.54.0 breaking changes
- Removed
SwiftLint 0.54.0 can only be built with Swift 5.9 or newer, so older toolchains no longer work. github.com - Behavior changed
discouraged_optional_collection
The rule was rewritten with SwiftSyntax and reports additional cases, so code that passed before may now produce warnings. github.com
And 1 more in this version.
github.com/realm/swiftlint 0.53.0 breaking changes
- Removed
disable and enable commands in multiline comments
Disable and enable commands placed in multiline comments no longer take effect; move them to single-line comments. github.com - Removed
Reporter
All Reporter types are no longer part of SwiftLint's public interface; code that uses them directly must stop doing so. github.com
And 1 more in this version.
github.com/realm/swiftlint 0.52.0 breaking changes
- Behavior changed
Error messages now begin with warning: so they appear in Xcode; scripts parsing the output may need updating. github.com - Behavior changed
attributes
Attributes with arguments must now sit on their own line above the declaration; this can be turned off with attributes_with_arguments_always_on_line_above set to false. github.com
And 3 more in this version.
github.com/realm/swiftlint 0.51.0 breaking changes
- Behavior changed
generic_type_name
Strings in the excluded option are now interpreted as regular expressions; escape literal characters if needed. github.com - Behavior changed
identifier_name
Strings in the excluded option are now interpreted as regular expressions; escape literal characters if needed. github.com
And 4 more in this version.
github.com/realm/swiftlint 0.50.0 breaking changes
- Behavior changed
The body length rules now calculate line counts differently, so existing configuration limits or disable comments may need adjusting. github.com - Behavior changed
SwiftLint now needs Swift 5.7 or newer to build. Users building it from source must upgrade their Swift toolchain. github.com
And 3 more in this version.
github.com/realm/swiftlint 0.50.0-rc.4 breaking changes
- Behavior changed
SwiftLint now needs Swift 5.7 or higher to build from source. Make sure your toolchain is at least Swift 5.7. github.com - Behavior changed
The body length family of rules now counts body lines differently, so thresholds and disable comments may need adjusting. github.com
And 2 more in this version.
github.com/realm/swiftlint 0.50.0-rc.3 breaking changes
- Behavior changed
SwiftLint now needs Swift 5.7 or higher to build from source. Make sure your toolchain is at least Swift 5.7. github.com - Behavior changed
The body length family of rules now counts body lines differently, so thresholds and disable comments may need adjusting. github.com
And 2 more in this version.
github.com/realm/swiftlint 0.50.0-rc.2 breaking changes
- Removed
SwiftLint now requires Swift 5.7 or higher to build. Users building from source need Swift 5.7+. github.com - Behavior changed
The body length family of rules now calculates body line count differently, so configuration or disable comments may need adjustment. github.com
And 1 more in this version.
github.com/realm/swiftlint 0.50.0-rc.1 breaking changes
- Removed
SwiftLint now requires Swift 5.7 or higher to build. Users building from source need Swift 5.7+. github.com - Behavior changed
weak_delegate
The weak_delegate rule no longer autocorrects, so violations must be fixed manually. github.com
github.com/realm/swiftlint 0.49.0 breaking changes
- Removed
autocorrect
The autocorrect command deprecated in 0.43.0 has been removed. Use --fix instead. github.com - Removed
AutomaticTestableRule
The AutomaticTestableRule protocol was removed; all rule examples are now tested automatically. github.com
And 3 more in this version.
github.com/realm/swiftlint 0.49.0-rc.2 breaking changes
- Removed
autocorrect
The autocorrect command deprecated in 0.43.0 has been removed. Use --fix instead. github.com - Removed
AutomaticTestableRule
The AutomaticTestableRule protocol was removed; all rule examples are now tested automatically. github.com
And 3 more in this version.
github.com/realm/swiftlint 0.49.0-rc.1 breaking changes
- Removed
autocorrect
The autocorrect command deprecated in 0.43.0 has been removed. Use --fix instead. github.com - Removed
AutomaticTestableRule
The AutomaticTestableRule protocol was removed; all rule examples are now tested automatically. github.com
And 3 more in this version.
github.com/realm/swiftlint 0.48.0 breaking changes
- Behavior changed
operator_usage_whitespace
The operator_usage_whitespace rule was rewritten and no longer catches violations around return arrows; return_arrow_whitespace handles those now. github.com - Configuration changed
deployment_target
Extension targets default to their counterparts unless explicitly configured, which can change results for existing configurations. github.com
github.com/realm/swiftlint 0.47.0 breaking changes
- Removed
The SwiftLintFramework CocoaPods podspec was removed; use the SwiftLint podspec instead. github.com - Behavior changed
SwiftLint now needs at least Swift 5.0 installed in order to lint files. Users must have a compatible Swift toolchain available. github.com
And 2 more in this version.
github.com/realm/swiftlint 0.45.0 breaking changes
- Removed
Building SwiftLint now needs Swift 5.4 or later, so builders must use that toolchain or newer. github.com - Default changed
identifier_name
The identifier_name rule now excludes id by default, so code using id is no longer reported unless configured otherwise. github.com
github.com/realm/swiftlint 0.44.0 breaking changes
- Renamed
Colon
The rule name changed from "Colon" to "Colon Spacing", so configurations and disable comments that reference the old name must be updated. github.com - Behavior changed
SwiftLint now needs Swift 5.3 or higher to build, so older toolchains can no longer build it. github.com
And 1 more in this version.
github.com/realm/swiftlint 0.43.0 breaking changes
- Removed
swiftlint autocorrect
The swiftlint autocorrect command was removed; use swiftlint --fix instead. Previous commands should keep working temporarily. github.com - Behavior changed
Command line syntax has slightly changed after migrating from Commandant to swift-argument-parser. Scripts that call swiftlint may need their arguments updated. github.com
And 2 more in this version.
github.com/realm/swiftlint 0.42.0 breaking changes
- Removed
Developers must open the repository as a Swift Package (xed . or xed Package.swift) instead of the removed workspace and project files. github.com - Removed
Projects that integrated SwiftLintFramework as a Carthage dependency must use another integration method. github.com
And 6 more in this version.
github.com/realm/swiftlint 0.41.0 breaking changes
- Removed
unneeded_notification_center_removal
The unneeded_notification_center_removal rule was removed because it was based on an incorrect premise. Configurations referencing it must be updated. github.com - Renamed
whitelist_rules
The whitelist_rules configuration key has been renamed to only_rules. Users must update their configuration files. github.com
And 3 more in this version.
github.com/realm/swiftlint 0.40.0 breaking changes
- Behavior changed
Invalid compile commands JSON files or arguments now make the command abort. Users who previously passed invalid input must fix it. github.com - Configuration changed
SwiftLint now requires Swift 5.1 or higher to build. Users building from source must use Swift 5.1 or later. github.com
github.com/realm/swiftlint 0.39.0 breaking changes
- Behavior changed
type_contents_order
Code ordering that previously passed may now be flagged, so deinitializers may need to be moved in configured type content orders. github.com - Configuration changed
Anyone building SwiftLint from source needs Xcode 11.0 or later. github.com
And 1 more in this version.
github.com/realm/swiftlint 0.38.0 breaking changes
- Removed
SyntaxMap
The SyntaxToken and SyntaxMap structures used in public SwiftLintFramework APIs are replaced by SwiftLintSyntaxToken and SwiftlintSyntaxMap wrappers, so code using the old types must switch to the new ones. github.com - Removed
SyntaxToken
The SyntaxToken and SyntaxMap structures used in public SwiftLintFramework APIs are replaced by SwiftLintSyntaxToken and SwiftlintSyntaxMap wrappers, so code using the old types must switch to the new ones. github.com
github.com/realm/swiftlint 0.37.0 breaking changes
- Removed
[String: SourceKittenRepresentable]
Public SwiftLintFramework APIs that used [String: SourceKittenRepresentable] dictionaries now use the new SourceKittenDictionary wrapper, so code passing or reading those dictionaries must be updated. github.com
github.com/realm/swiftlint 0.36.0 breaking changes
- Removed
Older Swift toolchains can no longer build SwiftLint. Build with Swift 5.0 or later. github.com
github.com/realm/swiftlint 0.35.0 breaking changes
- Configuration changed
This is the last release that supports building with Swift 4.2.x, so builds on that toolchain must move to a newer Swift version. github.com
github.com/realm/swiftlint 0.34.0 breaking changes
- Removed
unused_private_declaration
The unused_private_declaration rule was completely removed. Use unused_declaration instead. github.com - Signature changed
Linter
The Linter type was significantly changed and many public SwiftLintFramework APIs that interacted with Linter were affected. Users of the framework must adapt, and CollectedLinter was introduced. github.com
github.com/realm/swiftlint 0.33.0 breaking changes
- Removed
weak_computed_property
The weak_computed_property rule has been removed, so configurations that reference it may no longer work as before. github.com
github.com/realm/swiftlint 0.32.0 breaking changes
- Behavior changed
superfluous_disable_command
A 'disable all' command now overrides the superfluous_disable_command rule, so it may no longer report violations that it used to report. github.com
github.com/realm/swiftlint 0.31.0 breaking changes
- Behavior changed
SwiftLint now emits a warning if a rule is configured but not enabled, which may add warnings to existing builds. github.com - Behavior changed
nimble_operator
The nimble_operator rule now reports uses of beTrue() and beFalse(), so code using them may newly produce violations. github.com
And 1 more in this version.
github.com/realm/swiftlint 0.29.0 breaking changes
- Configuration changed
SwiftLint 0.29.0 can only be built with Swift 4.2 or newer. Builds from source with older Swift toolchains will fail and must be upgraded. github.com
github.com/realm/swiftlint 0.27.0 breaking changes
- Default changed
superfluous_disable_command
The superfluous_disable_command rule now defaults to warning severity instead of error. Set its severity explicitly if your build depends on it failing. github.com
github.com/realm/swiftlint 0.26.0 breaking changes
- Default changed
fallthrough
The fallthrough rule no longer runs by default. Users who want it must enable it explicitly in their configuration. github.com - Default changed
function_parameter_count.ignores_default_parameters
The new ignores_default_parameters option is true by default, so default parameters are no longer counted unless it is turned off. github.com
And 2 more in this version.
github.com/realm/swiftlint 0.24.0 breaking changes
- Removed
SwiftLint now needs Xcode 9 and Swift 3.2+ to build. Users building it from source on older toolchains must upgrade them. github.com - Removed
SwiftExpressionKind.other
The SwiftExpressionKind.other case was removed, so code that refers to it will no longer compile. github.com
github.com/realm/swiftlint 0.22.0 breaking changes
- Configuration changed
Nested configuration files are merged with parent configurations rather than replacing them outright, so existing nested configs may now produce different results. github.com
github.com/realm/swiftlint 0.21.0 breaking changes
- Behavior changed
Building SwiftLint needs Xcode 8.3 or later and Swift 3.1 or later. Build environments older than that must be upgraded. github.com - Configuration changed
Configuration files no longer read yes, no, on and off as booleans. Quote them or use true and false if a boolean was intended. github.com
github.com/realm/swiftlint 0.20.0 breaking changes
- Configuration changed
validates_start_lowercase
The configuration key used when decoding these rules is now validates_start_with_lowercase, as the docs already stated. Configs that relied on validates_start_lowercase must switch to the documented key. github.com
github.com/realm/swiftlint 0.19.0 breaking changes
- Removed
Code and configurations targeting Swift 2 are no longer supported. github.com - Removed
Configuration.hash
Code that reads Configuration.hash will no longer compile. github.com
And 5 more in this version.
github.com/realm/swiftlint 0.19.0-rc.1 breaking changes
- Removed
Code and configurations targeting Swift 2 are no longer supported. github.com - Removed
Configuration.hash
Code that reads Configuration.hash will no longer compile. github.com
And 5 more in this version.
github.com/realm/swiftlint 0.18.0 breaking changes
- Removed
SwiftLint now uses Yams instead of YamlSwift. Projects that implicitly depended on YamlSwift must add YamlSwift as an explicit dependency. github.com - Configuration changed
Yams parses YAML more strictly than YamlSwift. Configuration files that only worked before because they broke YAML 1.2 must be fixed, for example by using single quotes for regex strings with backslashes. github.com
github.com/realm/swiftlint 0.17.0 breaking changes
- Renamed
variable_name
The variable_name rule is now identifier_name because it validates other identifiers too. Update rule names in configuration files to identifier_name. github.com - Behavior changed
Caching during linting is turned off until cache-related issues are fixed in a future version. github.com
And 3 more in this version.
github.com/realm/swiftlint 0.16.0 breaking changes
- Behavior changed
Several API breaking changes were made to conform to the Swift 3 API Design Guidelines; code using the affected APIs must be updated. github.com - Behavior changed
type_name
The type_name rule now forces enum values to be UpperCamelCase again when used with Swift 2.3, which may newly flag existing code. github.com
And 1 more in this version.
github.com/realm/swiftlint 0.15.0 breaking changes
- Default changed
line_length
The line_length rule now has a default warning value of 120. Set an explicit value in your configuration if you want a different limit. github.com - Configuration changed
colon
The colon rule now also checks dictionaries. Use the apply_to_dictionaries option to disable this check. github.com
github.com/realm/swiftlint 0.14.0 breaking changes
- Configuration changed
SwiftLint now needs Xcode 8.x and Swift 3.x to build. Anyone building it must use those toolchains. github.com
github.com/realm/swiftlint 0.13.0 breaking changes
- Default changed
Vertical Whitespace Rule
The Vertical Whitespace rule is on by default again and is no longer opt-in, so code that relied on it being off may now get new violations. github.com
github.com/realm/swiftlint 0.12.0 breaking changes
- Behavior changed
Paths in the YAML config file are now resolved relative to the current directory even when --path is passed. Users who relied on the old resolution must adjust their config paths. github.com - Default changed
Vertical Whitespace Rule
The Vertical Whitespace Rule added in 0.11.2 is no longer enabled by default because of performance issues. Users who want it must enable it explicitly in their configuration. github.com
github.com/realm/swiftlint 0.11.0 breaking changes
- Behavior changed
type_name
The type_name rule now accepts lowercase enum case names, so code that relied on it flagging them will see fewer violations. github.com - Configuration changed
Frameworks needed by swiftlint were moved from the SwiftLintFramework Xcode target to the swiftlint target, and the SwiftLintFramework.framework product no longer contains them or extra Swift library copies. github.com
github.com/realm/swiftlint 0.9.0 breaking changes
- Removed
A large number of declarations were removed from the public SwiftLintFramework API. Code depending on them must be updated or the functionality reimplemented. github.com - Removed
_ConfigProviderRule
_ConfigProviderRule was removed and its requirements moved to Rule. Custom rules that conform to it must be updated. github.com
And 8 more in this version.
github.com/realm/swiftlint 0.8.0 breaking changes
- Renamed
enabled_rules
The enabled_rules config key has been renamed to opt_in_rules. Update config files to use the new key. github.com - Behavior changed
SeverityLevelsConfig
Setting only a warning on SeverityLevelsConfig rules now disables the error value. Check configs that set only a warning level. github.com
github.com/realm/swiftlint 0.7.0 breaking changes
- Removed
VariableNameMaxLengthRule
VariableNameMaxLengthRule was removed. VariableNameRule now provides this functionality. github.com - Removed
VariableNameMinLengthRule
VariableNameMinLengthRule was removed. VariableNameRule now provides this functionality. github.com
And 4 more in this version.
github.com/realm/swiftlint 0.6.0 breaking changes
- Removed
ParameterizedRule
ParameterizedRule is gone; use ConfigurableRule instead. github.com - Behavior changed
masterRuleList
To activate a Rule, it must now be added to the global masterRuleList. github.com
github.com/realm/swiftlint 0.5.0 breaking changes
- Removed
Rule.init
init() is no longer a member of the Rule protocol, so custom rule types that relied on it must be updated. github.com
github.com/realm/swiftlint 0.4.0 breaking changes
- Removed
Rule().example
Rule().example is combined into Rule.description. Read the example from Rule.description instead. github.com - Removed
Rule().identifier
Rule().identifier is combined into Rule.description. Read the identifier from Rule.description instead. github.com
And 2 more in this version.
github.com/realm/swiftlint 0.3.0 breaking changes
- Behavior changed
The JSON and CSV reporters now only print output at the very end of the linting process rather than incrementally. Tools reading their output during linting may need adjusting. github.com - Behavior changed
All informational logs are printed to stderr; only reporter output goes to stdout. Scripts that captured logs from stdout must read stderr instead. github.com
And 1 more in this version.
github.com/realm/swiftlint 0.2.0 breaking changes
- Removed
SwiftLint now exclusively supports Swift 2.0, so code targeting earlier Swift versions can no longer be linted by this release. github.com - Behavior changed
Violations are printed to stderr instead of stdout, so scripts reading stdout for violations must change. github.com
And 2 more in this version.
Related packages
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.