-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy path.swiftformat
More file actions
46 lines (39 loc) · 952 Bytes
/
.swiftformat
File metadata and controls
46 lines (39 loc) · 952 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# SwiftFormat Configuration for NativeAppTemplate
# Swift version
--swiftversion 6.0
# Indentation
--indent 4
--indentcase false
--trimwhitespace always
# Operators
--nospaceoperators ...,..
--ranges spaced
# File header
--header "//\n// {file}\n// NativeAppTemplate\n//"
# Excluded paths
--exclude Pods,Carthage,DerivedData,.build
# Formatting rules
--allman false
--maxwidth 120
--wraparguments before-first
--wrapparameters before-first
--wrapcollections before-first
--closingparen balanced
--commas always
--decimalgrouping 3,4
--exponentcase lowercase
--fractiongrouping disabled
--hexliteralcase lowercase
--ifdef no-indent
--linebreaks lf
--octalgrouping 4,8
--operatorfunc spaced
--patternlet hoist
--self remove
--semicolons never
--stripunusedargs closure-only
--trailingclosures
--commas inline
--xcodeindentation disabled
# Disabled rules to avoid conflicts with SwiftLint
--disable wrapMultilineStatementBraces,redundantSendable