Added a Swift Format configuration for the Xcode project.
This commit is contained in:
@@ -0,0 +1,59 @@
|
|||||||
|
{
|
||||||
|
"version": 1,
|
||||||
|
"lineLength": 200,
|
||||||
|
"indentation": {
|
||||||
|
"spaces": 4
|
||||||
|
},
|
||||||
|
"maximumBlankLines": 1,
|
||||||
|
"respectsExistingLineBreaks": true,
|
||||||
|
"lineBreakBeforeControlFlowKeywords": true,
|
||||||
|
"lineBreakBeforeEachArgument": true,
|
||||||
|
"lineBreakBeforeEachGenericRequirement": true,
|
||||||
|
"lineBreakBetweenDeclarationAttributes": true,
|
||||||
|
"prioritizeKeepingFunctionOutputTogether": true,
|
||||||
|
"indentConditionalCompilationBlocks": true,
|
||||||
|
"indentSwitchCaseLabels": false,
|
||||||
|
"spacesAroundRangeFormationOperators": true,
|
||||||
|
"multiElementCollectionTrailingCommas": true,
|
||||||
|
"rules": {
|
||||||
|
"AllPublicDeclarationsHaveDocumentation": false,
|
||||||
|
"AlwaysUseLiteralForEmptyCollectionInit": true,
|
||||||
|
"AlwaysUseLowerCamelCase": true,
|
||||||
|
"AmbiguousTrailingClosureOverload": true,
|
||||||
|
"BeginDocumentationCommentWithOneLineSummary": false,
|
||||||
|
"DoNotUseSemicolons": true,
|
||||||
|
"DontRepeatTypeInStaticProperties": true,
|
||||||
|
"FileScopedDeclarationPrivacy": true,
|
||||||
|
"FullyIndirectEnum": true,
|
||||||
|
"GroupNumericLiterals": true,
|
||||||
|
"IdentifiersMustBeASCII": true,
|
||||||
|
"NeverForceUnwrap": false,
|
||||||
|
"NeverUseForceTry": false,
|
||||||
|
"NeverUseImplicitlyUnwrappedOptionals": false,
|
||||||
|
"NoAccessLevelOnExtensionDeclaration": false,
|
||||||
|
"NoAssignmentInExpressions": true,
|
||||||
|
"NoBlockComments": true,
|
||||||
|
"NoCasesWithOnlyFallthrough": true,
|
||||||
|
"NoEmptyTrailingClosureParentheses": true,
|
||||||
|
"NoLabelsInCasePatterns": true,
|
||||||
|
"NoLeadingUnderscores": false,
|
||||||
|
"NoParensAroundConditions": true,
|
||||||
|
"NoVoidReturnOnFunctionSignature": true,
|
||||||
|
"OmitExplicitReturns": false,
|
||||||
|
"OneCasePerLine": true,
|
||||||
|
"OneVariableDeclarationPerLine": true,
|
||||||
|
"OnlyOneTrailingClosureArgument": true,
|
||||||
|
"OrderedImports": true,
|
||||||
|
"ReplaceForEachWithForLoop": true,
|
||||||
|
"ReturnVoidInsteadOfEmptyTuple": true,
|
||||||
|
"UseEarlyExits": false,
|
||||||
|
"UseExplicitNilCheckInConditions": true,
|
||||||
|
"UseLetInEveryBoundCaseVariable": true,
|
||||||
|
"UseShorthandTypeNames": true,
|
||||||
|
"UseSingleLinePropertyGetter": true,
|
||||||
|
"UseSynthesizedInitializer": true,
|
||||||
|
"UseTripleSlashForDocumentationComments": true,
|
||||||
|
"UseWhereClausesInForLoops": false,
|
||||||
|
"ValidateDocumentationComments": false
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user