Last active
March 24, 2025 04:33
-
-
Save kylehughes/4de608a194c8b01b7f16799b1d862762 to your computer and use it in GitHub Desktop.
The perfect, comprehensive swift-format (600.0.0) configuration.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"indentBlankLines": false, | |
"indentConditionalCompilationBlocks": false, | |
"indentSwitchCaseLabels" : false, | |
"indentation": { | |
"spaces": 4 | |
}, | |
"lineBreakAroundMultilineExpressionChainComponents": true, | |
"lineBreakBeforeControlFlowKeywords": false, | |
"lineBreakBeforeEachArgument": true, | |
"lineBreakBeforeEachGenericRequirement": true, | |
"lineBreakBetweenDeclarationAttributes": false, | |
"lineLength": 120, | |
"maximumBlankLines": 1, | |
"multiElementCollectionTrailingCommas": true, | |
"prioritizeKeepingFunctionOutputTogether": true, | |
"respectsExistingLineBreaks": true, | |
"rules": { | |
"AllPublicDeclarationsHaveDocumentation": true, | |
"AlwaysUseLiteralForEmptyCollectionInit": true, | |
"AlwaysUseLowerCamelCase": true, | |
"AmbiguousTrailingClosureOverload": false, | |
"BeginDocumentationCommentWithOneLineSummary": true, | |
"DoNotUseSemicolons": true, | |
"DontRepeatTypeInStaticProperties": true, | |
"FileScopedDeclarationPrivacy": true, | |
"FullyIndirectEnum": true, | |
"GroupNumericLiterals": true, | |
"IdentifiersMustBeASCII": true, | |
"NeverForceUnwrap": false, | |
"NeverUseForceTry": false, | |
"NeverUseImplicitlyUnwrappedOptionals": false, | |
"NoAccessLevelOnExtensionDeclaration": true, | |
"NoBlockComments": true, | |
"NoCasesWithOnlyFallthrough": true, | |
"NoEmptyTrailingClosureParentheses": true, | |
"NoLabelsInCasePatterns": true, | |
"NoParensAroundConditions": true, | |
"NoPlaygroundLiterals": true, | |
"NoVoidReturnOnFunctionSignature": true, | |
"OmitExplicitReturns": true, | |
"OneCasePerLine": true, | |
"OneVariableDeclarationPerLine": true, | |
"OrderedImports": true, | |
"ReturnVoidInsteadOfEmptyTuple": true, | |
"TypeNamesShouldBeCapitalized": true, | |
"UseEarlyExits": true, | |
"UseExplicitNilCheckInConditions": true, | |
"UseLetInEveryBoundCaseVariable": false, | |
"UseShorthandTypeNames": true, | |
"UseSingleLinePropertyGetter": true, | |
"UseSynthesizedInitializer": false, | |
"UseTripleSlashForDocumentationComments": true, | |
"UseWhereClausesInForLoops": true, | |
"ValidateDocumentationComments": true | |
}, | |
"spacesAroundRangeFormationOperators": true, | |
"spacesBeforeEndOfLineComments": 2, | |
"tabWidth": 4, | |
"version": 1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
More properties exist, but they throw warnings and are not respected when included. These are all of the ones that do not throw warnings.