Skip to content

Commit 0d72542

Browse files
KKK669kkebo
authored andcommitted
Bump swift-format to 509.0.0
1 parent 7e212a5 commit 0d72542

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.swift-format

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,17 @@
1313
"lineBreakBeforeEachGenericRequirement" : true,
1414
"lineLength" : 120,
1515
"maximumBlankLines" : 1,
16-
"prioritizeKeepingFunctionOutputTogether" : false,
16+
"multiElementCollectionTrailingCommas" : true,
17+
"noAssignmentInExpressions" : {
18+
"allowedFunctions" : [
19+
"XCTAssertNoThrow"
20+
]
21+
},
22+
"prioritizeKeepingFunctionOutputTogether" : true,
1723
"respectsExistingLineBreaks" : true,
1824
"rules" : {
1925
"AllPublicDeclarationsHaveDocumentation" : true,
26+
"AlwaysUseLiteralForEmptyCollectionInit" : true,
2027
"AlwaysUseLowerCamelCase" : true,
2128
"AmbiguousTrailingClosureOverload" : true,
2229
"BeginDocumentationCommentWithOneLineSummary" : true,
@@ -37,12 +44,16 @@
3744
"NoLabelsInCasePatterns" : true,
3845
"NoLeadingUnderscores" : true,
3946
"NoParensAroundConditions" : true,
47+
"NoPlaygroundLiterals" : true,
4048
"NoVoidReturnOnFunctionSignature" : true,
49+
"OmitExplicitReturns" : true,
4150
"OneCasePerLine" : true,
4251
"OneVariableDeclarationPerLine" : true,
4352
"OnlyOneTrailingClosureArgument" : true,
4453
"OrderedImports" : true,
54+
"ReplaceForEachWithForLoop" : true,
4555
"ReturnVoidInsteadOfEmptyTuple" : true,
56+
"TypeNamesShouldBeCapitalized" : true,
4657
"UseEarlyExits" : true,
4758
"UseLetInEveryBoundCaseVariable" : true,
4859
"UseShorthandTypeNames" : true,

0 commit comments

Comments
 (0)