From 780dc7e39e6fe9dab1416c6187336ddae31002d2 Mon Sep 17 00:00:00 2001 From: Miguel Torres Date: Fri, 30 Sep 2022 14:21:17 +0200 Subject: [PATCH] feat(swiftformat): added .swiftformat --- .swiftformat | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .swiftformat diff --git a/.swiftformat b/.swiftformat new file mode 100644 index 00000000..6db89887 --- /dev/null +++ b/.swiftformat @@ -0,0 +1,42 @@ +# file options + +--exclude Tests/XCTestManifests.swift,Snapshots,DerivedData + +# format options + +--allman false +--binarygrouping 4,8 +--commas always +--comments indent +--decimalgrouping 3,6 +--elseposition same-line +--guardelse same-line +--empty void +--exponentcase lowercase +--exponentgrouping disabled +--fractiongrouping disabled +--header ignore +--hexgrouping 4,8 +--hexliteralcase uppercase +--ifdef indent +--indent 4 +--indentcase false +--importgrouping testable-bottom +--linebreaks lf +--octalgrouping 4,8 +--operatorfunc spaced +--patternlet hoist +--ranges spaced +--self remove +--semicolons never +--stripunusedargs always +--trimwhitespace always +--wraparguments preserve +--wrapcollections preserve +--maxwidth 115 +--redundanttype explicit + +# rules + +--enable isEmpty +--disable wrapMultilineStatementBraces