From bd9eb1d8ef82b3a782369e5577e107ae3ac873cc Mon Sep 17 00:00:00 2001 From: Rauhul Varma Date: Wed, 11 Dec 2024 23:36:37 -0800 Subject: [PATCH] Update .swift-format Enables a number of rules that are already followed by this code base. --- .swift-format | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.swift-format b/.swift-format index 41a022f26..eb78c13cc 100644 --- a/.swift-format +++ b/.swift-format @@ -1,11 +1,15 @@ { - "version": 1, - "lineLength": 120, + "fileScopedDeclarationPrivacy" : { + "accessLevel" : "private" + }, "indentation": { "spaces": 2 }, - "lineBreakBeforeEachArgument": true, "indentConditionalCompilationBlocks": false, + "indentSwitchCaseLabels" : false, + "lineBreakBeforeEachArgument": true, + "lineLength": 120, + "maximumBlankLines" : 1, "prioritizeKeepingFunctionOutputTogether": true, "rules": { "AlwaysUseLowerCamelCase": false, @@ -14,5 +18,7 @@ "OrderedImports": true, "UseLetInEveryBoundCaseVariable": false, "UseSynthesizedInitializer": false - } + }, + "tabWidth" : 2, + "version": 1 }