Skip to content
This repository was archived by the owner on Apr 23, 2025. It is now read-only.

Commit b974fa7

Browse files
authored
Update .swift-format (#484)
Update the swift-format file to match the configuration from swift-apis
1 parent 67db8aa commit b974fa7

File tree

1 file changed

+51
-12
lines changed

1 file changed

+51
-12
lines changed

.swift-format

Lines changed: 51 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,53 @@
11
{
2-
"version": 1,
3-
"lineLength": 100,
4-
"indentation": {
5-
"spaces": 4
6-
},
7-
"maximumBlankLines": 1,
8-
"respectsExistingLineBreaks": true,
9-
"blankLineBetweenMembers": {
10-
"ignoreSingleLineProperties": true
11-
},
12-
"lineBreakBeforeControlFlowKeywords": false,
13-
"lineBreakBeforeEachArgument": false
2+
"fileScopedDeclarationPrivacy" : {
3+
"accessLevel" : "private"
4+
},
5+
"indentation" : {
6+
"spaces" : 2
7+
},
8+
"indentConditionalCompilationBlocks" : true,
9+
"lineBreakAroundMultilineExpressionChainComponents" : false,
10+
"lineBreakBeforeControlFlowKeywords" : false,
11+
"lineBreakBeforeEachArgument" : false,
12+
"lineBreakBeforeEachGenericRequirement" : false,
13+
"lineLength" : 100,
14+
"maximumBlankLines" : 1,
15+
"prioritizeKeepingFunctionOutputTogether" : false,
16+
"respectsExistingLineBreaks" : true,
17+
"rules" : {
18+
"AllPublicDeclarationsHaveDocumentation" : true,
19+
"AlwaysUseLowerCamelCase" : true,
20+
"AmbiguousTrailingClosureOverload" : true,
21+
"BeginDocumentationCommentWithOneLineSummary" : true,
22+
"DoNotUseSemicolons" : true,
23+
"DontRepeatTypeInStaticProperties" : true,
24+
"FileprivateAtFileScope" : true,
25+
"FullyIndirectEnum" : true,
26+
"GroupNumericLiterals" : true,
27+
"IdentifiersMustBeASCII" : false,
28+
"NeverForceUnwrap" : true,
29+
"NeverUseForceTry" : true,
30+
"NeverUseImplicitlyUnwrappedOptionals" : true,
31+
"NoAccessLevelOnExtensionDeclaration" : true,
32+
"NoBlockComments" : true,
33+
"NoCasesWithOnlyFallthrough" : true,
34+
"NoEmptyTrailingClosureParentheses" : true,
35+
"NoLabelsInCasePatterns" : true,
36+
"NoLeadingUnderscores" : true,
37+
"NoParensAroundConditions" : true,
38+
"NoVoidReturnOnFunctionSignature" : true,
39+
"OneCasePerLine" : true,
40+
"OneVariableDeclarationPerLine" : true,
41+
"OnlyOneTrailingClosureArgument" : true,
42+
"OrderedImports" : true,
43+
"ReturnVoidInsteadOfEmptyTuple" : true,
44+
"UseLetInEveryBoundCaseVariable" : true,
45+
"UseShorthandTypeNames" : true,
46+
"UseSingleLinePropertyGetter" : true,
47+
"UseSynthesizedInitializer" : true,
48+
"UseTripleSlashForDocumentationComments" : true,
49+
"ValidateDocumentationComments" : true
50+
},
51+
"tabWidth" : 8,
52+
"version" : 1
1453
}

0 commit comments

Comments
 (0)