Skip to content

Commit 0fa1f65

Browse files
committed
Prepare for 0.58.2 release
1 parent a3dd82c commit 0fa1f65

File tree

6 files changed

+18
-12
lines changed

6 files changed

+18
-12
lines changed

CHANGELOG.md

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

3+
## [0.58.2](https://github.com/nicklockwood/SwiftFormat/releases/tag/0.58.2) (2025-09-29)
4+
5+
- Fixed issue where `modifierOrder` rule confused `async` effect for `async` modifier
6+
- Fixed issue where testing related rules incorrectly treated functions with arguments as test cases
7+
- Updated `redundantInit` rule to apply to `init` calls with single trailing closure
8+
- Updated `README.md` to reflect actual precedence behavior between `.swift-version` files and `--swift-version` arguments.
9+
310
## [0.58.1](https://github.com/nicklockwood/SwiftFormat/releases/tag/0.58.1) (2025-09-24)
411

512
- Fixed issue where `async` effect could be confused for `async` modifier, breaking `docCommentsBeforeModifiers` rule in protocol body with async functions

CommandLineTool/swiftformat

-16 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.58.1"
35+
let swiftFormatVersion = "0.58.2"
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.58.1",
3+
"version": "0.58.2",
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.58.1"
13+
"tag": "0.58.2"
1414
},
1515
"default_subspecs": "Core",
1616
"subspecs": [

SwiftFormat.xcodeproj/project.pbxproj

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1279,7 +1279,7 @@
12791279
"@loader_path/Frameworks",
12801280
);
12811281
MACOSX_DEPLOYMENT_TARGET = 10.14;
1282-
MARKETING_VERSION = 0.58.1;
1282+
MARKETING_VERSION = 0.58.2;
12831283
MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++";
12841284
MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu99 gnu++11";
12851285
PRODUCT_BUNDLE_IDENTIFIER = com.charcoaldesign.SwiftFormat;
@@ -1312,7 +1312,7 @@
13121312
"@loader_path/Frameworks",
13131313
);
13141314
MACOSX_DEPLOYMENT_TARGET = 10.14;
1315-
MARKETING_VERSION = 0.58.1;
1315+
MARKETING_VERSION = 0.58.2;
13161316
MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++";
13171317
MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu99 gnu++11";
13181318
PRODUCT_BUNDLE_IDENTIFIER = com.charcoaldesign.SwiftFormat;
@@ -1416,7 +1416,7 @@
14161416
GENERATE_INFOPLIST_FILE = YES;
14171417
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
14181418
MACOSX_DEPLOYMENT_TARGET = 15.4;
1419-
MARKETING_VERSION = 0.58.1;
1419+
MARKETING_VERSION = 0.58.2;
14201420
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
14211421
MTL_FAST_MATH = YES;
14221422
PRODUCT_BUNDLE_IDENTIFIER = com.charcoaldesign.SwiftFormat.RegressionTests;
@@ -1446,7 +1446,7 @@
14461446
GENERATE_INFOPLIST_FILE = YES;
14471447
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
14481448
MACOSX_DEPLOYMENT_TARGET = 15.4;
1449-
MARKETING_VERSION = 0.58.1;
1449+
MARKETING_VERSION = 0.58.2;
14501450
MTL_FAST_MATH = YES;
14511451
PRODUCT_BUNDLE_IDENTIFIER = com.charcoaldesign.SwiftFormat.RegressionTests;
14521452
PRODUCT_NAME = "$(TARGET_NAME)";
@@ -1477,7 +1477,7 @@
14771477
"@executable_path/../Frameworks",
14781478
);
14791479
MACOSX_DEPLOYMENT_TARGET = 10.14;
1480-
MARKETING_VERSION = 0.58.1;
1480+
MARKETING_VERSION = 0.58.2;
14811481
PRODUCT_BUNDLE_IDENTIFIER = "com.charcoaldesign.SwiftFormat-for-Xcode";
14821482
PRODUCT_NAME = "SwiftFormat for Xcode";
14831483
PROVISIONING_PROFILE_SPECIFIER = "";
@@ -1508,7 +1508,7 @@
15081508
"@executable_path/../Frameworks",
15091509
);
15101510
MACOSX_DEPLOYMENT_TARGET = 10.14;
1511-
MARKETING_VERSION = 0.58.1;
1511+
MARKETING_VERSION = 0.58.2;
15121512
PRODUCT_BUNDLE_IDENTIFIER = "com.charcoaldesign.SwiftFormat-for-Xcode";
15131513
PRODUCT_NAME = "SwiftFormat for Xcode";
15141514
PROVISIONING_PROFILE_SPECIFIER = "";
@@ -1537,7 +1537,7 @@
15371537
"@executable_path/../../../../Frameworks",
15381538
);
15391539
MACOSX_DEPLOYMENT_TARGET = 10.14;
1540-
MARKETING_VERSION = 0.58.1;
1540+
MARKETING_VERSION = 0.58.2;
15411541
PRODUCT_BUNDLE_IDENTIFIER = "com.charcoaldesign.SwiftFormat-for-Xcode.SourceEditorExtension";
15421542
PRODUCT_NAME = SwiftFormat;
15431543
PROVISIONING_PROFILE_SPECIFIER = "";
@@ -1567,7 +1567,7 @@
15671567
"@executable_path/../../../../Frameworks",
15681568
);
15691569
MACOSX_DEPLOYMENT_TARGET = 10.14;
1570-
MARKETING_VERSION = 0.58.1;
1570+
MARKETING_VERSION = 0.58.2;
15711571
PRODUCT_BUNDLE_IDENTIFIER = "com.charcoaldesign.SwiftFormat-for-Xcode.SourceEditorExtension";
15721572
PRODUCT_NAME = SwiftFormat;
15731573
PROVISIONING_PROFILE_SPECIFIER = "";

Tests/Rules/RedundantAsyncTests.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ class RedundantAsyncTests: XCTestCase {
4747
#expect(1 == 1)
4848
}
4949
"""
50-
let options = FormatOptions(redundantAsync: .testsOnly)
5150
testFormatting(for: input, output, rule: .redundantAsync)
5251
}
5352

0 commit comments

Comments
 (0)