Skip to content

Commit 599dd01

Browse files
committed
Prepare for 0.58.0 release
1 parent b8a00c3 commit 599dd01

File tree

5 files changed

+41
-11
lines changed

5 files changed

+41
-11
lines changed

CHANGELOG.md

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

3+
## [0.58.0](https://github.com/nicklockwood/SwiftFormat/releases/tag/0.58.0) (2025-09-22)
4+
5+
- Added `noForceUnwrapInTests` rule
6+
- Added `redundantThrows` rule
7+
- Added `redundantAsync` rule
8+
- Added `preferFinalClasses` rule
9+
- Added support for Swift 6.2 raw identifiers
10+
- Updated `trailingCommas` rule to handle cases now supported by Swift 6.2
11+
- Updated `trailingClosures` rule to support multiple trailing closures
12+
- Added support for filtering config file options to a specific file path glob
13+
- Added `--allow-partial-wrapping false` option to disallow partial wrapping of functions and collections
14+
- Updated `propertyTypes` rule to support array, dictionary, and set literals
15+
- Added `organizeDeclarations` threshold options to organize types without adding marks
16+
- Added `--type-body-marks remove` option to `organizeDeclarations`
17+
- Updated `organizeDeclarations` to support organizing protocol bodies
18+
- Updated `organizeDeclarations` to treat `associatedtype` declarations as nested types, like `typealias` declarations.
19+
- Added `--blank-line-after-switch-case always` option to `blankLineAfterSwitchCase`
20+
- Add `--default-test-suite-attributes` option to `preferSwiftTesting` rule
21+
- Renamed `--markdown-files` options to `strict` and `lenient`
22+
- Updated `redundantPublic` rule to apply to private types
23+
- Updated `trailingClosures` and `trailingCommas` rules to support optional function calls
24+
- Fixed bug where `markTypes` rule wouldn't add marks after extensions
25+
- Fixed issue where `redundantPublic` broke `@_spi` annotated members
26+
- Improved parsing of nested markdown code blocks
27+
- Fixed issue where `hoistTry` rule could break `@Test` attribute
28+
- Fixed issue where `redundantVoidReturnType` rule could accidentally remove closure type
29+
- Fix `blankLinesAroundMark` not ignoring trailing comments at start of scope
30+
- Renamed `throwingTests` rule to `noForceTryInTests`
31+
- Updated `singlePropertyPerLine` to preserve `async let` declarations
32+
333
## [0.57.2](https://github.com/nicklockwood/SwiftFormat/releases/tag/0.57.2) (2025-07-14)
434

535
- Updated `trailingCommas` rule to handle function declarations with generic arguments.

CommandLineTool/swiftformat

488 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.57.2"
35+
let swiftFormatVersion = "0.58.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.57.2",
3+
"version": "0.58.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.57.2"
13+
"tag": "0.58.0"
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.57.2;
1282+
MARKETING_VERSION = 0.58.0;
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.57.2;
1315+
MARKETING_VERSION = 0.58.0;
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.57.2;
1419+
MARKETING_VERSION = 0.58.0;
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.57.2;
1449+
MARKETING_VERSION = 0.58.0;
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.57.2;
1480+
MARKETING_VERSION = 0.58.0;
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.57.2;
1511+
MARKETING_VERSION = 0.58.0;
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.57.2;
1540+
MARKETING_VERSION = 0.58.0;
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.57.2;
1570+
MARKETING_VERSION = 0.58.0;
15711571
PRODUCT_BUNDLE_IDENTIFIER = "com.charcoaldesign.SwiftFormat-for-Xcode.SourceEditorExtension";
15721572
PRODUCT_NAME = SwiftFormat;
15731573
PROVISIONING_PROFILE_SPECIFIER = "";

0 commit comments

Comments
 (0)