-
Notifications
You must be signed in to change notification settings - Fork 50
/
Copy path.swiftformat
133 lines (131 loc) · 3.18 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
# Tool options
--minversion 0.48.11
--swiftversion 5.4
# Format options
--assetliterals visual-width
--beforemarks
# Uncomment if we decide to enable `organizeDeclarations` rule
#--categorymark "MARK: - %c"
--conflictmarkers reject
--exponentcase lowercase
--extensionmark "MARK: - %t + %c"
--fragment false
--funcattributes prev-line
--groupedextension "MARK: %c"
--guardelse auto
--header ignore
--hexgrouping none
--hexliteralcase lowercase
--ifdef no-indent
--importgrouping alpha
--indent 4
--indentcase false
--lifecycle
--linebreaks lf
--markextensions always
--marktypes always
--maxwidth none
--modifierorder acl,setteracl,override,dynamic,mutators,lazy,final,class,static,required,convenience,typemethods,owned
--nevertrailing
--nospaceoperators ...,..<
--nowrapoperators
--octalgrouping none
--organizetypes actor,class,enum,struct
--patternlet inline
--ranges spaced # ???
--redundanttype inferred
--self init-only
--selfrequired
--semicolons never
--smarttabs enabled
# Uncomment if we decide to enable `unusedArguments` rule
#--stripunusedargs closure-only
--structthreshold 0
--tabwidth unspecified
--trailingclosures
--trimwhitespace always
--typeattributes prev-line
--typemark "MARK: - %t"
--varattributes prev-line
--voidtype void
--wraparguments before-first
--wrapcollections before-first
--wrapconditions before-first
--wrapparameters before-first
--wrapreturntype preserve
--xcodeindentation disabled
# Rules
--rules andOperator
--rules anyObjectProtocol
--rules blankLinesAroundMark
--rules blankLinesAtEndOfScope
--rules blankLinesAtStartOfScope
--rules blankLinesBetweenScopes
--rules braces
--rules consecutiveBlankLines
--rules consecutiveSpaces
--rules duplicateImports
--rules elseOnSameLine
--rules emptyBraces
--disable enumNamespaces
--rules extensionAccessControl
--disable fileHeader
--rules hoistPatternLet
--rules indent
--rules initCoderUnavailable
--disable isEmpty
--rules leadingDelimiters
--rules linebreakAtEndOfFile
--rules linebreaks
--disable markTypes
--rules modifierOrder
--rules numberFormatting
--disable organizeDeclarations
--disable preferKeyPath
--rules redundantBackticks
--rules redundantBreak
--rules redundantExtensionACL
--rules redundantFileprivate
--rules redundantGet
--rules redundantInit
--rules redundantLet
--rules redundantLetError
--rules redundantNilInit
--rules redundantObjc
--rules redundantParens
--rules redundantPattern
--rules redundantRawValues
--rules redundantReturn
--rules redundantSelf
--rules redundantType
--rules redundantVoidReturnType
--rules semicolons
--rules sortedImports
--disable sortedSwitchCases
--rules spaceAroundBraces
--rules spaceAroundBrackets
--rules spaceAroundComments
--rules spaceAroundGenerics
--rules spaceAroundOperators
--rules spaceAroundParens
--rules spaceInsideBraces
--rules spaceInsideBrackets
--rules spaceInsideComments
--rules spaceInsideGenerics
--rules spaceInsideParens
--rules strongOutlets
--rules strongifiedSelf
--rules todos
--rules trailingClosures
--rules trailingCommas
--rules trailingSpace
--rules typeSugar
--disable unusedArguments
--rules void
--disable wrap
--rules wrapArguments
--rules wrapAttributes
--rules wrapEnumCases
--rules wrapMultilineStatementBraces
--disable wrapSwitchCases
--rules yodaConditions