Skip to content

Commit 0ce3749

Browse files
LiedtkeV8-internal LUCI CQ
authored andcommitted
[format] Add .swift-format with default settings
Bug: 430616180 Change-Id: I168f494c2a1c0510fb6524495da4adb10ccd00cc Reviewed-on: https://chrome-internal-review.googlesource.com/c/v8/fuzzilli/+/9155816 Reviewed-by: Michael Achenbach <machenbach@google.com> Commit-Queue: Matthias Liedtke <mliedtke@google.com>
1 parent 16efb85 commit 0ce3749

1 file changed

Lines changed: 79 additions & 0 deletions

File tree

.swift-format

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
{
2+
"fileScopedDeclarationPrivacy" : {
3+
"accessLevel" : "private"
4+
},
5+
"indentBlankLines" : false,
6+
"indentConditionalCompilationBlocks" : true,
7+
"indentSwitchCaseLabels" : false,
8+
"indentation" : {
9+
"spaces" : 2
10+
},
11+
"lineBreakAroundMultilineExpressionChainComponents" : false,
12+
"lineBreakBeforeControlFlowKeywords" : false,
13+
"lineBreakBeforeEachArgument" : false,
14+
"lineBreakBeforeEachGenericRequirement" : false,
15+
"lineBreakBetweenDeclarationAttributes" : false,
16+
"lineLength" : 100,
17+
"maximumBlankLines" : 1,
18+
"multiElementCollectionTrailingCommas" : true,
19+
"noAssignmentInExpressions" : {
20+
"allowedFunctions" : [
21+
"XCTAssertNoThrow"
22+
]
23+
},
24+
"orderedImports" : {
25+
"includeConditionalImports" : false
26+
},
27+
"prioritizeKeepingFunctionOutputTogether" : false,
28+
"reflowMultilineStringLiterals" : "never",
29+
"respectsExistingLineBreaks" : true,
30+
"rules" : {
31+
"AllPublicDeclarationsHaveDocumentation" : false,
32+
"AlwaysUseLiteralForEmptyCollectionInit" : false,
33+
"AlwaysUseLowerCamelCase" : true,
34+
"AmbiguousTrailingClosureOverload" : true,
35+
"AvoidRetroactiveConformances" : true,
36+
"BeginDocumentationCommentWithOneLineSummary" : false,
37+
"DoNotUseSemicolons" : true,
38+
"DontRepeatTypeInStaticProperties" : true,
39+
"FileScopedDeclarationPrivacy" : true,
40+
"FullyIndirectEnum" : true,
41+
"GroupNumericLiterals" : true,
42+
"IdentifiersMustBeASCII" : true,
43+
"NeverForceUnwrap" : false,
44+
"NeverUseForceTry" : false,
45+
"NeverUseImplicitlyUnwrappedOptionals" : false,
46+
"NoAccessLevelOnExtensionDeclaration" : true,
47+
"NoAssignmentInExpressions" : true,
48+
"NoBlockComments" : true,
49+
"NoCasesWithOnlyFallthrough" : true,
50+
"NoEmptyLinesOpeningClosingBraces" : false,
51+
"NoEmptyTrailingClosureParentheses" : true,
52+
"NoLabelsInCasePatterns" : true,
53+
"NoLeadingUnderscores" : false,
54+
"NoParensAroundConditions" : true,
55+
"NoPlaygroundLiterals" : true,
56+
"NoVoidReturnOnFunctionSignature" : true,
57+
"OmitExplicitReturns" : false,
58+
"OneCasePerLine" : true,
59+
"OneVariableDeclarationPerLine" : true,
60+
"OnlyOneTrailingClosureArgument" : true,
61+
"OrderedImports" : true,
62+
"ReplaceForEachWithForLoop" : true,
63+
"ReturnVoidInsteadOfEmptyTuple" : true,
64+
"TypeNamesShouldBeCapitalized" : true,
65+
"UseEarlyExits" : false,
66+
"UseExplicitNilCheckInConditions" : true,
67+
"UseLetInEveryBoundCaseVariable" : true,
68+
"UseShorthandTypeNames" : true,
69+
"UseSingleLinePropertyGetter" : true,
70+
"UseSynthesizedInitializer" : true,
71+
"UseTripleSlashForDocumentationComments" : true,
72+
"UseWhereClausesInForLoops" : false,
73+
"ValidateDocumentationComments" : false
74+
},
75+
"spacesAroundRangeFormationOperators" : false,
76+
"spacesBeforeEndOfLineComments" : 2,
77+
"tabWidth" : 8,
78+
"version" : 1
79+
}

0 commit comments

Comments
 (0)