-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.swiftformat
157 lines (155 loc) · 4.73 KB
/
.swiftformat
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
# Exclude checkout directories for common package managers
--exclude Carthage,Generated,Pods,.build
# rules
--rules acronyms
--rules andOperator
--rules anyObjectProtocol
--rules assertionFailures
--rules blankLineAfterSwitchCase
--rules blankLinesAroundMark
--rules blankLinesAtEndOfScope
--rules blankLinesAtStartOfScope
--rules blankLinesBetweenChainedFunctions
--rules blankLinesBetweenScopes
--rules blockComments
--rules braces
--rules conditionalAssignment
--rules consecutiveBlankLines
--rules consecutiveSpaces
--rules consistentSwitchCaseSpacing
--rules docComments
--rules duplicateImports
--rules elseOnSameLine
--rules emptyBraces
--rules enumNamespaces
--rules extensionAccessControl
--rules genericExtensions
--rules headerFileName
--rules hoistAwait
--rules hoistPatternLet
--rules hoistTry
--rules indent
--rules initCoderUnavailable
--rules isEmpty
--rules leadingDelimiters
--rules linebreakAtEndOfFile
--rules linebreaks
--rules markTypes
--rules modifierOrder
--rules numberFormatting
--rules opaqueGenericParameters
--rules organizeDeclarations
--rules preferForLoop
--rules redundantBreak
--rules redundantClosure
--rules redundantExtensionACL
--rules redundantFileprivate
--rules redundantGet
--rules redundantInit
--rules redundantInternal
--rules redundantLet
--rules redundantLetError
--rules redundantNilInit
--rules redundantObjc
--rules redundantOptionalBinding
--rules redundantParens
--rules redundantPattern
--rules redundantProperty
--rules redundantRawValues
--rules redundantSelf
--rules redundantStaticSelf
--rules redundantType
--rules redundantTypedThrows
--rules redundantVoidReturnType
--rules semicolons
--rules sortDeclarations
--rules sortImports
--rules sortTypealiases
--rules spaceAroundBraces
--rules spaceAroundBrackets
--rules spaceAroundComments
--rules spaceAroundGenerics
--rules spaceAroundOperators
--rules spaceAroundParens
--rules spaceInsideBrackets
--rules spaceInsideBraces
--rules spaceInsideComments
--rules spaceInsideGenerics
--rules spaceInsideParens
--rules strongifiedSelf
--rules todos
--rules trailingClosures
--rules trailingCommas
--rules trailingSpace
--rules typeSugar
--rules unusedArguments
--rules void
--rules wrap
--rules wrapArguments
--rules wrapAttributes
--rules wrapConditionalBodies
--rules wrapEnumCases
--rules wrapLoopBodies
--rules wrapMultilineConditionalAssignment
--rules wrapSingleLineComments
--rules wrapSwitchCases
--rules yodaConditions
--rules fileHeader
# options
--allman false
--self remove # redundantSelf
--importgrouping alpha # sortImports
--commas always # trailingCommas
--trimwhitespace nonblank-lines # trailingSpace
--indent 4 #indent
--ifdef no-indent #indent
--indentstrings true #indent
--wraparguments before-first # wrapArguments
--wrapparameters before-first # wrapArguments
--wrapcollections before-first # wrapArguments
--wrapconditions before-first # wrapArguments
--wrapreturntype if-multiline # wrapArguments
--wrapeffects preserve # wrapArguments
--closingparen balanced # wrapArguments
--callsiteparen balanced # wrapArguments
--wraptypealiases before-first # wrapArguments
--funcattributes prev-line # wrapAttributes
--computedvarattrs prev-line # wrapAttributes
--storedvarattrs prev-line # wrapAttributes
--complexattrs prev-line # wrapAttributes
--typeattributes prev-line # wrapAttributes
--maxwidth 120 # wrap, We recommend a max width of 100 but _strictly enforce_ a max width of 130
--wrapternary before-operators # wrap
--extensionacl on-declarations # extensionAccessControl
--patternlet hoist # hoistPatternLet
--redundanttype inferred # redundantType
--typeblanklines remove # blankLinesAtStartOfScope, blankLinesAtEndOfScope
--emptybraces spaced # emptyBraces
--someany false # opaqueGenericParameters
--elseposition same-line # elseOnSameLine
--guardelse next-line # elseOnSameLine
--onelineforeach convert # preferForLoop
--shortoptionals always # typeSugar
--semicolons never # semicolons
--doccomments preserve # docComments
--closurevoid preserve # redundantVoidReturnType
--modifierorder # modifierOrder
--voidtype void # void
--decimalgrouping none # numberFormatting
--binarygrouping none # numberFormatting
--octalgrouping none # numberFormatting
--hexgrouping none # numberFormatting
--fractiongrouping disabled # numberFormatting
--exponentgrouping disabled # numberFormatting
--hexliteralcase uppercase # numberFormatting
--exponentcase lowercase # numberFormatting
--markcategories true # organizeDeclarations
--beforemarks # organizeDeclarations
--lifecycle # organizeDeclarations
--organizetypes class,actor,struct,enum # organizeDeclarations
--organizationmode type # organizeDeclarations
--selfrequired # redundantSelf
--stripunusedargs always # unusedArguments
--yodaswap always # yodaConditions
--header \n {file}\n DomainsResolution\n\n Created by Sun on {created}.\n
--dateformat system