Skip to content

Commit 532b8df

Browse files
committed
Update for 0.56.0 release
1 parent 1416859 commit 532b8df

File tree

5 files changed

+33
-9
lines changed

5 files changed

+33
-9
lines changed

CHANGELOG.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,29 @@
11
# Change Log
22

3+
## [0.56.0](https://github.com/nicklockwood/SwiftFormat/releases/tag/0.56.0) (2025-05-12)
4+
5+
- Added `wrapMultilineFunctionChains` rule to wrap chained method calls
6+
- Added `environmentEntry` rule to update SwiftUI `EnvironmentValues` definitions to use the `@Entry` macro
7+
- Added `redundantEquatable` rule to remove explicit `Equatable` conformances that would be compiler-synthesized
8+
- Added `preferSwiftTesting` rule to migrate XCTest-based tests to Swift Testing
9+
- Added `swiftTestingTestCaseNames` rule to remove redundant "test" prefix from Swift Testing test case methods.
10+
- Added `preferCountWhere` rule to prefer `count(where:)` over `filter(_:).count`
11+
- Added `fileMacro` rule to prefer either `#file` or `#fileID`, which have the same behavior in Swift 6 and later
12+
- Added `blankLinesAfterGuardStatements` rule to remove blank lines between consecuitve guard statements, and add blank line after last guard statement.
13+
- Added `privateStateVariables` rule to add `private` access control to `@State` properties
14+
- Added `emptyExtensions` rule to remove extensions that contain no declarations or conformances
15+
- Added `--preserveacronyms` option to `acronyms` rule
16+
- Added `--wrapreturntype never` option to `wrapArguments` rule
17+
- Updated `trailingCommas` to support Swift 6.1 trailing comma functionality
18+
- `opaqueGenericParameters` now supports protocol requirements without a body
19+
- `--wrapeffects` and `--wrapreturntype` now support protocol requirements and closure types
20+
- Fixed indentation of trailing closures after chained multiline method call when using same-line closing parens
21+
- `blankLinesAtStartOfScope` rule now supports switch cases and closure capture / parameter lists
22+
- Fixed issue where type under `organizeDeclarations` line count threshold would ignore `swiftformat:sort` directives
23+
- Fixed issue where `organizeDeclarations` rule would unexpectedly remove non-mark comments
24+
- Compiling SwiftFormat now requires Swift 5.7+
25+
- SwiftFormat prerelease builds can now be installed via Homebrew using `brew install swiftformat --head`. Prerelease builds are subject to breaking changes.
26+
327
## [0.55.6](https://github.com/nicklockwood/SwiftFormat/releases/tag/0.55.6) (2025-04-29)
428

529
- Fixed parsing bugs related to parameter packs (`repeat`, `each` keywords)

CommandLineTool/swiftformat

213 KB
Binary file not shown.

Sources/SwiftFormat.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
import Foundation
3333

3434
/// The current SwiftFormat version
35-
let swiftFormatVersion = "0.55.6"
35+
let swiftFormatVersion = "0.56.0"
3636
public let version = swiftFormatVersion
3737

3838
/// The standard SwiftFormat config file name

SwiftFormat.podspec.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "SwiftFormat",
3-
"version": "0.55.6",
3+
"version": "0.56.0",
44
"license": {
55
"type": "MIT",
66
"file": "LICENSE.md"
@@ -10,7 +10,7 @@
1010
"authors": "Nick Lockwood",
1111
"source": {
1212
"git": "https://github.com/nicklockwood/SwiftFormat.git",
13-
"tag": "0.55.6"
13+
"tag": "0.56.0"
1414
},
1515
"default_subspecs": "Core",
1616
"subspecs": [

SwiftFormat.xcodeproj/project.pbxproj

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2832,7 +2832,7 @@
28322832
"@loader_path/Frameworks",
28332833
);
28342834
MACOSX_DEPLOYMENT_TARGET = 10.14;
2835-
MARKETING_VERSION = 0.55.6;
2835+
MARKETING_VERSION = 0.56.0;
28362836
MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++";
28372837
MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu99 gnu++11";
28382838
PRODUCT_BUNDLE_IDENTIFIER = com.charcoaldesign.SwiftFormat;
@@ -2865,7 +2865,7 @@
28652865
"@loader_path/Frameworks",
28662866
);
28672867
MACOSX_DEPLOYMENT_TARGET = 10.14;
2868-
MARKETING_VERSION = 0.55.6;
2868+
MARKETING_VERSION = 0.56.0;
28692869
MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++";
28702870
MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu99 gnu++11";
28712871
PRODUCT_BUNDLE_IDENTIFIER = com.charcoaldesign.SwiftFormat;
@@ -2973,7 +2973,7 @@
29732973
"@executable_path/../Frameworks",
29742974
);
29752975
MACOSX_DEPLOYMENT_TARGET = 10.14;
2976-
MARKETING_VERSION = 0.55.6;
2976+
MARKETING_VERSION = 0.56.0;
29772977
PRODUCT_BUNDLE_IDENTIFIER = "com.charcoaldesign.SwiftFormat-for-Xcode";
29782978
PRODUCT_NAME = "SwiftFormat for Xcode";
29792979
PROVISIONING_PROFILE_SPECIFIER = "";
@@ -3003,7 +3003,7 @@
30033003
"@executable_path/../Frameworks",
30043004
);
30053005
MACOSX_DEPLOYMENT_TARGET = 10.14;
3006-
MARKETING_VERSION = 0.55.6;
3006+
MARKETING_VERSION = 0.56.0;
30073007
PRODUCT_BUNDLE_IDENTIFIER = "com.charcoaldesign.SwiftFormat-for-Xcode";
30083008
PRODUCT_NAME = "SwiftFormat for Xcode";
30093009
PROVISIONING_PROFILE_SPECIFIER = "";
@@ -3031,7 +3031,7 @@
30313031
"@executable_path/../../../../Frameworks",
30323032
);
30333033
MACOSX_DEPLOYMENT_TARGET = 10.14;
3034-
MARKETING_VERSION = 0.55.6;
3034+
MARKETING_VERSION = 0.56.0;
30353035
PRODUCT_BUNDLE_IDENTIFIER = "com.charcoaldesign.SwiftFormat-for-Xcode.SourceEditorExtension";
30363036
PRODUCT_NAME = SwiftFormat;
30373037
PROVISIONING_PROFILE_SPECIFIER = "";
@@ -3060,7 +3060,7 @@
30603060
"@executable_path/../../../../Frameworks",
30613061
);
30623062
MACOSX_DEPLOYMENT_TARGET = 10.14;
3063-
MARKETING_VERSION = 0.55.6;
3063+
MARKETING_VERSION = 0.56.0;
30643064
PRODUCT_BUNDLE_IDENTIFIER = "com.charcoaldesign.SwiftFormat-for-Xcode.SourceEditorExtension";
30653065
PRODUCT_NAME = SwiftFormat;
30663066
PROVISIONING_PROFILE_SPECIFIER = "";

0 commit comments

Comments
 (0)