mirror of
https://github.com/apple/swift-collections
synced 2026-11-22 04:20:40 +00:00
Add rudimentary swift-format configuration
This commit is contained in:
1 file changed
+50
@@ -0,0 +1,50 @@
|
||||
{
|
||||
"version": 1,
|
||||
"lineLength": 80,
|
||||
"indentation": {
|
||||
"spaces": 2
|
||||
},
|
||||
"maximumBlankLines": 10,
|
||||
"respectsExistingLineBreaks": false,
|
||||
"lineBreakBeforeEachArgument": true,
|
||||
"lineBreakBeforeEachGenericRequirement": true,
|
||||
"lineBreakBetweenDeclarationAttributes": true,
|
||||
"prioritizeKeepingFunctionOutputTogether": true,
|
||||
"indentConditionalCompilationBlocks": false,
|
||||
"lineBreakAroundMultilineExpressionChainComponents": true,
|
||||
"indentSwitchCaseLabels": false,
|
||||
"spacesAroundRangeFormationOperators": true,
|
||||
"multilineTrailingCommaBehavior": "keptAsWritten",
|
||||
"multiElementCollectionTrailingCommas": true,
|
||||
"indentBlankLines": false,
|
||||
"rules": {
|
||||
"AlwaysUseLowerCamelCase": false,
|
||||
"AmbiguousTrailingClosureOverload": false,
|
||||
"DoNotUseSemicolons": false,
|
||||
"DontRepeatTypeInStaticProperties": false,
|
||||
"NeverForceUnwrap": false,
|
||||
"NeverUseForceTry": false,
|
||||
"NoAccessLevelOnExtensionDeclaration": true,
|
||||
"NoBlockComments": false,
|
||||
"NoCasesWithOnlyFallthrough": false,
|
||||
"NoEmptyLinesOpeningClosingBraces": false,
|
||||
"NoEmptyTrailingClosureParentheses": false,
|
||||
"NoLeadingUnderscores": false,
|
||||
"NoPlaygroundLiterals": true,
|
||||
"NoVoidReturnOnFunctionSignature": false,
|
||||
"OneCasePerLine": true,
|
||||
"OneVariableDeclarationPerLine": true,
|
||||
"OrderedImports": false,
|
||||
"ReplaceForEachWithForLoop": false,
|
||||
"TypeNamesShouldBeCapitalized": true,
|
||||
"UseEarlyExits": false,
|
||||
"UseExplicitNilCheckInConditions": false,
|
||||
"UseLetInEveryBoundCaseVariable": false,
|
||||
"UseShorthandTypeNames": false,
|
||||
"UseSingleLinePropertyGetter": false,
|
||||
"UseSynthesizedInitializer": false,
|
||||
"UseTripleSlashForDocumentationComments": true,
|
||||
"UseWhereClausesInForLoops": false,
|
||||
"ValidateDocumentationComments": true
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user