From cc62f1d227c16bb90d4e211c51ee5676f03f8aae Mon Sep 17 00:00:00 2001 From: Max Desiatov Date: Thu, 15 May 2025 10:05:23 +0100 Subject: [PATCH 1/2] Bump `lineLength` to 120 in `.swift-format` This seems to be a reasonable limit still readable on most devices, while reducing the amount of reformatting applied by `swift format` checks. --- .swift-format | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.swift-format b/.swift-format index 3b4cc63..e9b435d 100644 --- a/.swift-format +++ b/.swift-format @@ -11,7 +11,7 @@ "lineBreakBeforeControlFlowKeywords" : false, "lineBreakBeforeEachArgument" : true, "lineBreakBeforeEachGenericRequirement" : false, - "lineLength" : 100, + "lineLength" : 120, "maximumBlankLines" : 1, "multiElementCollectionTrailingCommas" : true, "noAssignmentInExpressions" : { From 829b4c1e553c91abb14fe55e0312844ae2dc54cf Mon Sep 17 00:00:00 2001 From: Max Desiatov Date: Thu, 15 May 2025 10:07:24 +0100 Subject: [PATCH 2/2] Update WebAssemblyRecipe.swift --- .../SwiftSDKGenerator/SwiftSDKRecipes/WebAssemblyRecipe.swift | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Sources/SwiftSDKGenerator/SwiftSDKRecipes/WebAssemblyRecipe.swift b/Sources/SwiftSDKGenerator/SwiftSDKRecipes/WebAssemblyRecipe.swift index ca2b598..f3b16dc 100644 --- a/Sources/SwiftSDKGenerator/SwiftSDKRecipes/WebAssemblyRecipe.swift +++ b/Sources/SwiftSDKGenerator/SwiftSDKRecipes/WebAssemblyRecipe.swift @@ -167,8 +167,7 @@ public struct WebAssemblyRecipe: SwiftSDKRecipe { } /// Merge the target Swift package into the Swift SDK bundle derived from the host Swift package. - func mergeTargetSwift(from distributionPath: FilePath, generator: SwiftSDKGenerator) async throws - { + func mergeTargetSwift(from distributionPath: FilePath, generator: SwiftSDKGenerator) async throws { let pathsConfiguration = generator.pathsConfiguration logger.info("Copying Swift core libraries for the target triple into Swift SDK bundle...") for (pathWithinPackage, pathWithinSwiftSDK, isOptional) in [