From cdac4268436f2a1ea2a2f12e3ed9c5284aa722a4 Mon Sep 17 00:00:00 2001 From: PatTheMav Date: Sat, 21 Jun 2025 01:35:59 +0200 Subject: [PATCH] CI: Update swift-format configuration with more explicit rules --- .swift-format | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.swift-format b/.swift-format index d09b0d3e8..a1205f582 100644 --- a/.swift-format +++ b/.swift-format @@ -8,5 +8,16 @@ "maximumBlankLines": 1, "respectsExistingLineBreaks": true, "lineBreakBeforeControlFlowKeywords": false, - "lineBreakBeforeEachArgument": false + "lineBreakBeforeEachArgument": false, + "lineBreakBeforeEachGenericRequirement": false, + "lineBreakBetweenDeclarationAttributes": false, + "prioritizeKeepingFunctionOutputTogether": false, + "indentConditionalCompilationBlocks": true, + "lineBreakAroundMultilineExpressionChainComponents": false, + "fileScopedDeclarationPrivacy": {"accessLevel": "private"}, + "indentSwitchCaseLabels": false, + "spacesAroundRangeFormationOperators": false, + "noAssignmentInExpressions": { "allowedFunctions" : ["XCTAssertNoThrow"] }, + "multiElementCollectionTrailingCommas": true, + "indentBlankLines": false, }