Skip to content

Commit

Permalink
Update for 0.53.10 release
Browse files Browse the repository at this point in the history
  • Loading branch information
nicklockwood committed May 18, 2024
1 parent f5f5645 commit 4bf4751
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 9 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Change Log

## [0.53.10](https://github.com/nicklockwood/SwiftFormat/releases/tag/0.53.10) (2024-05-18)

- Fixed creation of spurious `stdout` directory when using `--output stdout`
- Fixed `unusedArguments` false positive for multiline function call arguments
- Fixed parsing of generic arguments containing attributes or `~` operator
- Fixed spurious errors about missing `--report` or `--reporter` arguments
- Fixed `strongifiedSelf` removing required backticks around nonisolated `self`
- Deprecated explicit `default` value for `--reporter` (introduced in 0.53.9)
- Added support for `sending` keyword

## [0.53.9](https://github.com/nicklockwood/SwiftFormat/releases/tag/0.53.9) (2024-05-12)

- Fixed bug in `unusedArguments` when shadowing function argument with conditional assignment declaration
Expand Down
Binary file modified CommandLineTool/swiftformat
Binary file not shown.
2 changes: 1 addition & 1 deletion Sources/SwiftFormat.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
import Foundation

/// The current SwiftFormat version
let swiftFormatVersion = "0.53.9"
let swiftFormatVersion = "0.53.10"
public let version = swiftFormatVersion

/// The standard SwiftFormat config file name
Expand Down
4 changes: 2 additions & 2 deletions SwiftFormat.podspec.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "SwiftFormat",
"version": "0.53.9",
"version": "0.53.10",
"license": {
"type": "MIT",
"file": "LICENSE.md"
Expand All @@ -10,7 +10,7 @@
"authors": "Nick Lockwood",
"source": {
"git": "https://github.com/nicklockwood/SwiftFormat.git",
"tag": "0.53.9"
"tag": "0.53.10"
},
"default_subspecs": "Core",
"subspecs": [
Expand Down
12 changes: 6 additions & 6 deletions SwiftFormat.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1138,7 +1138,7 @@
"@loader_path/Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 10.14;
MARKETING_VERSION = 0.53.9;
MARKETING_VERSION = 0.53.10;
MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++";
MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu99 gnu++11";
PRODUCT_BUNDLE_IDENTIFIER = com.charcoaldesign.SwiftFormat;
Expand Down Expand Up @@ -1171,7 +1171,7 @@
"@loader_path/Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 10.14;
MARKETING_VERSION = 0.53.9;
MARKETING_VERSION = 0.53.10;
MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++";
MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu99 gnu++11";
PRODUCT_BUNDLE_IDENTIFIER = com.charcoaldesign.SwiftFormat;
Expand Down Expand Up @@ -1278,7 +1278,7 @@
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 10.14;
MARKETING_VERSION = 0.53.9;
MARKETING_VERSION = 0.53.10;
PRODUCT_BUNDLE_IDENTIFIER = "com.charcoaldesign.SwiftFormat-for-Xcode";
PRODUCT_NAME = "SwiftFormat for Xcode";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down Expand Up @@ -1309,7 +1309,7 @@
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 10.14;
MARKETING_VERSION = 0.53.9;
MARKETING_VERSION = 0.53.10;
PRODUCT_BUNDLE_IDENTIFIER = "com.charcoaldesign.SwiftFormat-for-Xcode";
PRODUCT_NAME = "SwiftFormat for Xcode";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down Expand Up @@ -1337,7 +1337,7 @@
"@executable_path/../../../../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 10.14;
MARKETING_VERSION = 0.53.9;
MARKETING_VERSION = 0.53.10;
PRODUCT_BUNDLE_IDENTIFIER = "com.charcoaldesign.SwiftFormat-for-Xcode.SourceEditorExtension";
PRODUCT_NAME = SwiftFormat;
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down Expand Up @@ -1366,7 +1366,7 @@
"@executable_path/../../../../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 10.14;
MARKETING_VERSION = 0.53.9;
MARKETING_VERSION = 0.53.10;
PRODUCT_BUNDLE_IDENTIFIER = "com.charcoaldesign.SwiftFormat-for-Xcode.SourceEditorExtension";
PRODUCT_NAME = SwiftFormat;
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down
6 changes: 6 additions & 0 deletions Tests/RulesTests+General.swift
Original file line number Diff line number Diff line change
Expand Up @@ -839,6 +839,12 @@ class GeneralTests: RulesTests {
exclude: ["wrapConditionalBodies"])
}

func testBacktickedSelfNotConvertedIfNotConditional() {
let input = "nonisolated(unsafe) let `self` = self"
let options = FormatOptions(swiftVersion: "4.2")
testFormatting(for: input, rule: FormatRules.strongifiedSelf, options: options)
}

// MARK: - yodaConditions

func testNumericLiteralEqualYodaCondition() {
Expand Down

0 comments on commit 4bf4751

Please sign in to comment.