Skip to content

Commit 9a0ca56

Browse files
.swiftformat config added
1 parent f02b243 commit 9a0ca56

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

.swiftformat

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# rules
2+
--enable isEmpty
3+
--enable redundantFileprivate
4+
--enable redundantReturn
5+
--enable redundantBackticks
6+
--enable redundantBreak
7+
--enable redundantClosure
8+
--enable redundantExtensionACL
9+
--enable organizeDeclarations
10+
--enable redundantFileprivate
11+
--enable redundantGet
12+
--enable redundantInit
13+
--enable redundantInternal
14+
--enable redundantLet
15+
--enable redundantLetError
16+
--enable redundantNilInit
17+
--enable redundantObjc
18+
--enable redundantOptionalBinding
19+
--enable redundantParens
20+
--enable redundantPattern
21+
--enable redundantStaticSelf
22+
--enable redundantVoidReturnType
23+
--disable redundantRawValues
24+
--disable sortImports
25+
--disable andOperator
26+
--disable wrapMultilineStatementBraces
27+
--disable extensionAccessControl
28+
29+
# format options
30+
--indentcase true
31+
--trimwhitespace nonblank-lines
32+
--maxwidth 130
33+
--commas inline
34+
--comments indent
35+
--decimalgrouping 3,5
36+
--exponentcase lowercase
37+
--exponentgrouping disabled
38+
--extensionacl on-declarations
39+
--fractiongrouping disabled
40+
--ifdef no-indent
41+
--importgrouping testable-top
42+
--operatorfunc no-space
43+
--nospaceoperators ..<, ...
44+
--selfrequired validate
45+
--stripunusedargs closure-only
46+
--wraparguments preserve
47+
--wrapcollections preserve
48+
--wrapparameters preserve
49+
50+
# organizeDeclarations
51+
--markcategories false

0 commit comments

Comments
 (0)