Skip to content

Commit 19deeb1

Browse files
authored
Bump lineLength to 120 in .swift-format (#211)
This seems to be a reasonable limit still readable on most devices, while reducing the amount of reformatting applied by `swift format` checks.
1 parent 44ea35b commit 19deeb1

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.swift-format

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"lineBreakBeforeControlFlowKeywords" : false,
1212
"lineBreakBeforeEachArgument" : true,
1313
"lineBreakBeforeEachGenericRequirement" : false,
14-
"lineLength" : 100,
14+
"lineLength" : 120,
1515
"maximumBlankLines" : 1,
1616
"multiElementCollectionTrailingCommas" : true,
1717
"noAssignmentInExpressions" : {

Sources/SwiftSDKGenerator/SwiftSDKRecipes/WebAssemblyRecipe.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,7 @@ public struct WebAssemblyRecipe: SwiftSDKRecipe {
167167
}
168168

169169
/// Merge the target Swift package into the Swift SDK bundle derived from the host Swift package.
170-
func mergeTargetSwift(from distributionPath: FilePath, generator: SwiftSDKGenerator) async throws
171-
{
170+
func mergeTargetSwift(from distributionPath: FilePath, generator: SwiftSDKGenerator) async throws {
172171
let pathsConfiguration = generator.pathsConfiguration
173172
logger.info("Copying Swift core libraries for the target triple into Swift SDK bundle...")
174173
for (pathWithinPackage, pathWithinSwiftSDK, isOptional) in [

0 commit comments

Comments
 (0)