-
-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy path.swiftformat
More file actions
53 lines (50 loc) · 1.51 KB
/
Copy path.swiftformat
File metadata and controls
53 lines (50 loc) · 1.51 KB
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
47
48
49
50
51
52
53
--swiftversion 6.0
--minversion 0.54
# File options
# (No stale `Tests` entry — the real test dir is `MactermTests`, which is
# formatted along with the rest of the tree; `Tests` never existed.)
--exclude build,GhosttyKit,scripts
# Format options
--indent 4
--indentcase false
--trimwhitespace always
--voidtype void
--wraparguments before-first
--wrapparameters before-first
--wrapcollections before-first
--wrapconditions after-first
--wrapreturntype preserve
--wraptypealiases preserve
--closingparen balanced
--commas always
--decimalgrouping 3,6
--elseposition same-line
--guardelse next-line
--header strip
--ifdef no-indent
--importgrouping alpha
--maxwidth 140
--operatorfunc spaced
--patternlet hoist
--self remove
--semicolons never
--stripunusedargs closure-only
--trailingclosures
--typeattributes prev-line
--funcattributes prev-line
--varattributes prev-line
--modifierorder override,nonisolated,nonisolated(unsafe),private,fileprivate,internal,package,public,open,private(set),fileprivate(set),internal(set),package(set),public(set),open(set),final,dynamic,optional,required,convenience,indirect,isolated,lazy,weak,unowned,static,class,mutating,nonmutating,prefix,infix,postfix,async
# Rules
--enable isEmpty
--enable sortImports
--enable trailingCommas
--enable wrapEnumCases
--enable wrapSwitchCases
--enable blankLineAfterImports
--enable wrapMultilineStatementBraces
--disable redundantSelf
--disable sortSwitchCases
--disable markTypes
--disable organizeDeclarations
--disable wrapPropertyBodies
--disable redundantStaticSelf