Procházet zdrojové kódy

CI: Update swift-format configuration with more explicit rules

PatTheMav před 4 měsíci
rodič
revize
cdac426843
1 změnil soubory, kde provedl 12 přidání a 1 odebrání
  1. 12 1
      .swift-format

+ 12 - 1
.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,
 }