-
Notifications
You must be signed in to change notification settings - Fork 36
/
.swiftformat
475 lines (392 loc) Β· 22.9 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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
--exclude **/Pods, **/Generated
--swiftversion 5.0
# Default Rules (enabled by default)
# π[andOperator] - Prefer comma over && in if, guard or while conditions.
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#andOperator
--enable andOperator
# π[anyObjectProtocol] - Prefer AnyObject over class in protocol definitions.
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#anyObjectProtocol
--enable anyObjectProtocol
# π[assertionFailures] - Changes all instances of assert(false, ...) to assertionFailure(...) and precondition(false, ...) to preconditionFailure(...).
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#assertionFailures
--enable assertionFailures
# π[blankLinesAroundMark] - Insert blank line before and after MARK: comments.
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#blankLinesAroundMark
--enable blankLinesAroundMark
# [lineaftermarks] - Insert blank line after "MARK:": "true" (default) or "false"
--lineaftermarks true
# π[blankLinesAtEndOfScope] - Remove trailing blank line at the end of a scope.
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#blankLinesAtEndOfScope
--enable blankLinesAtEndOfScope
# π[blankLinesAtStartOfScope] - Remove leading blank line at the start of a scope.
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#blankLinesAtStartOfScope
--disable blankLinesAtStartOfScope
# π[blankLinesBetweenScopes] - Remove blank lines between import statements.
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#blankLinesBetweenScopes
--enable blankLinesBetweenScopes
# π[braces] - Wrap braces in accordance with selected style (K&R or Allman).
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#braces
--enable braces
# [allman] - Use allman indentation style: "true" or "false" (default)
--allman false
# π[consecutiveBlankLines] - Replace consecutive blank lines with a single blank line.
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#consecutiveBlankLines
--enable consecutiveBlankLines
# π[consecutiveSpaces] - Replace consecutive spaces with a single space.
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#consecutiveSpaces
--enable consecutiveSpaces
# π[duplicateImports] - Remove duplicate import statements.
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#duplicateImports
--enable duplicateImports
# π[elseOnSameLine] - Place else, catch or while keyword in accordance with current style (same or next line).
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#elseOnSameLine
--enable elseOnSameLine
# [elseposition] - Placement of else/catch: "same-line" (default) or "next-line"
--elseposition same-line
# [guardelse] - Guard else: "same-line", "next-line" or "auto" (default)
--guardelse auto
# π[emptyBraces] - Remove whitespace inside empty braces.
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#emptyBraces
--enable emptyBraces
# [emptybraces] - Empty braces: "no-space" (default), "spaced" or "linebreak"
--emptybraces no-space
# π[enumNamespaces] - Converts types used for hosting only static members into enums (an empty enum is the canonical way to create a namespace in Swift as it can't be instantiated).
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#enumNamespaces
--disable enumNamespaces
# π[extensionAccessControl] - Configure the placement of an extension's access control keyword.
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#extensionAccessControl
--enable extensionAccessControl
# [extensionacl] - Place ACL "on-extension" (default) or "on-declarations"
--extensionacl on-extension
# π[fileHeader] - Use specified source file header template for all files.
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#fileHeader
--enable fileHeader
# [header] - Header comments: "strip", "ignore", or the text you wish use
--header ignore
# π[hoistPatternLet] - Reposition let or var bindings within pattern.
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#hoistPatternLet
--enable hoistPatternLet
# [patternlet] - let/var placement in patterns: "hoist" (default) or "inline"
--patternlet hoist
# π[indent] - Indent code in accordance with the scope level.
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#indent
--enable indent
# [indent] - Number of spaces to indent, or "tab" to use tabs
--indent 4
# [tabwidth] - The width of a tab character. Defaults to "unspecified"
--tabwidth unspecified
# [smarttabs] - Align code independently of tab width. defaults to "enabled"
--smarttabs enabled
# [indentcase] - Indent cases inside a switch: "true" or "false" (default)
--indentcase false
# [ifdef] - #if indenting: "indent" (default), "no-indent" or "outdent"
--ifdef indent
# [xcodeindentation] - Match Xcode indenting: "enabled" or "disabled" (default)
--xcodeindentation disabled
# [indentstrings] - Indent Multiline Strings: "false" (default) or "true"
--indentstrings false
# π[initCoderUnavailable] - Add @available(*, unavailable) attribute to required init(coder:) when it hasn't been implemented.
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#initCoderUnavailable
--enable initCoderUnavailable
# π[leadingDelimiters] - Move leading delimiters to the end of the previous line.
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#leadingDelimiters
--enable leadingDelimiters
# π[linebreakAtEndOfFile] - Add empty blank line at end of file.
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#linebreakAtEndOfFile
--enable linebreakAtEndOfFile
# π[linebreaks] - Use specified linebreak character for all linebreaks (CR, LF or CRLF).
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#linebreaks
--enable linebreaks
# [linebreaks] - Linebreak character to use: "cr", "crlf" or "lf" (default)
--linebreaks lf
# π[modifierOrder] - Use consistent ordering for member modifiers.
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#modifierOrder
--enable modifierOrder
# [modifierorder] - Comma-delimited list of modifiers in preferred order
--modifierorder
# π[numberFormatting] - Use consistent grouping for numeric literals. Groups will be separated by _ delimiters to improve readability. For each numeric type you can specify a group size (the number of digits in each group) and a threshold (the minimum number of digits in a number before grouping is applied).
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#numberFormatting
--enable numberFormatting
# [decimalgrouping] - Decimal grouping,threshold (default: 3,6) or "none", "ignore"
--decimalgrouping ignore
# [binarygrouping] - Binary grouping,threshold (default: 4,8) or "none", "ignore"
--binarygrouping 4,8
# [octalgrouping] - Octal grouping,threshold (default: 4,8) or "none", "ignore"
--octalgrouping 4,8
# [hexgrouping] - Hex grouping,threshold (default: 4,8) or "none", "ignore"
--hexgrouping 4,8
# [fractiongrouping] - Group digits after '.': "enabled" or "disabled" (default)
--fractiongrouping disabled
# [exponentgrouping] - Group exponent digits: "enabled" or "disabled" (default)
--exponentgrouping disabled
# [hexliteralcase] - Casing for hex literals: "uppercase" (default) or "lowercase"
--hexliteralcase uppercase
# [exponentcase] - Case of 'e' in numbers: "lowercase" or "uppercase" (default)
--exponentcase uppercase
# π[preferKeyPath] - Convert trivial map { $0.foo } closures to keyPath-based syntax.
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#preferKeyPath
--enable preferKeyPath
# π[redundantBackticks] - Remove redundant backticks around identifiers.
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#redundantBackticks
--enable redundantBackticks
# π[redundantBreak] - Remove redundant break in switch case.
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#redundantBreak
--enable redundantBreak
# π[redundantClosure] - Removes redundant closures bodies, containing a single statement, which are called immediately.
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#redundantClosure
--enable redundantClosure
# π[redundantExtensionACL] - Remove redundant access control modifiers.
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#redundantExtensionACL
--enable redundantExtensionACL
# π[redundantFileprivate] - Prefer private over fileprivate where equivalent.
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#redundantFileprivate
--enable redundantFileprivate
# π[redundantGet] - Remove unneeded get clause inside computed properties.
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#redundantGet
--enable redundantGet
# π[redundantInit] - Remove explicit init if not required.
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#redundantInit
--enable redundantInit
# π[redundantLet] - Remove redundant let/var from ignored variables.
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#redundantLet
--enable redundantLet
# π[redundantLetError] - Remove redundant let error from catch clause.
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#redundantLetError
--enable redundantLetError
# π[redundantNilInit] - Remove redundant nil default value (Optional vars are nil by default).
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#redundantNilInit
--enable redundantNilInit
# π[redundantObjc] - Remove redundant @objc annotations.
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#redundantObjc
--enable redundantObjc
# π[redundantParens] - Remove redundant parentheses.
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#redundantParens
--enable redundantParens
# π[redundantPattern] - Remove redundant pattern matching parameter syntax.
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#redundantPattern
--enable redundantPattern
# π[redundantRawValues] - Remove redundant raw string values for enum cases.
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#redundantRawValues
--enable redundantRawValues
# π[redundantReturn] - Remove unneeded return keyword.
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#redundantReturn
--enable redundantReturn
# π[redundantSelf] - Insert/remove explicit self where applicable.
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#redundantSelf
--enable redundantSelf
# [self] - Explicit self: "insert", "remove" (default) or "init-only"
--self remove
# [selfrequired] - Comma-delimited list of functions with @autoclosure arguments
--selfrequired
# π[redundantType] - Remove redundant type from variable declarations.
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#redundantType
--enable redundantType
# [redundanttype] - "inferred", "explicit", or "infer-locals-only" (default)
--redundanttype infer-locals-only
# π[redundantVoidReturnType] - Remove explicit Void return type.
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#redundantVoidReturnType
--enable redundantVoidReturnType
# [closurevoid] - Closure void returns: "remove" (default) or "preserve"
--closurevoid remove
# π[semicolons] - Remove semicolons.
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#semicolons
--enable semicolons
# [semicolons] - Allow semicolons: "never" or "inline" (default)
--semicolons inline
# π[sortDeclarations] - Sorts the body of declarations with // swiftformat:sort and declarations between // swiftformat:sort:begin and // swiftformat:sort:end comments.
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#sortDeclarations
--enable sortDeclarations
# π[sortedImports] - Sort import statements alphabetically.
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#sortedImports
--enable sortedImports
# [importgrouping] - "testable-first/last", "alpha" (default) or "length"
--importgrouping alpha
# π[spaceAroundBraces] - Add or remove space around curly braces.
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#spaceAroundBraces
--enable spaceAroundBraces
# π[spaceAroundBrackets] - Add or remove space around square brackets.
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#spaceAroundBrackets
--enable spaceAroundBrackets
# π[spaceAroundComments] - Add space before and/or after comments.
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#spaceAroundComments
--enable spaceAroundComments
# π[spaceAroundGenerics] - Remove space around angle brackets.
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#spaceAroundGenerics
--enable spaceAroundGenerics
# π[spaceAroundOperators] - Add or remove space around operators or delimiters.
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#spaceAroundOperators
--enable spaceAroundOperators
# [operatorfunc] - Spacing for operator funcs: "spaced" (default) or "no-space"
--operatorfunc spaced
# [nospaceoperators] - Comma-delimited list of operators without surrounding space
--nospaceoperators
# [ranges] - Spacing for ranges: "spaced" (default) or "no-space"
--ranges spaced
# π[spaceAroundParens] - Add or remove space around parentheses.
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#spaceAroundParens
--enable spaceAroundParens
# π[spaceInsideBraces] - Add space inside curly braces.
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#spaceInsideBraces
--enable spaceInsideBraces
# π[spaceInsideBrackets] - Remove space inside square brackets.
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#spaceInsideBrackets
--enable spaceInsideBrackets
# π[spaceInsideComments] - Add leading and/or trailing space inside comments.
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#spaceInsideComments
--enable spaceInsideComments
# π[spaceInsideGenerics] - Remove space inside angle brackets.
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#spaceInsideGenerics
--enable spaceInsideGenerics
# π[spaceInsideParens] - Remove space inside parentheses.
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#spaceInsideParens
--enable spaceInsideParens
# π[strongOutlets] - Remove weak modifier from @IBOutlet properties.
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#strongOutlets
--enable strongOutlets
# π[strongifiedSelf] - Remove backticks around self in Optional unwrap expressions.
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#strongifiedSelf
--enable strongifiedSelf
# π[todos] - Use correct formatting for TODO:, MARK: or FIXME: comments.
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#todos
--enable todos
# π[trailingClosures] - Use trailing closure syntax where applicable.
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#trailingClosures
--enable trailingClosures
# [trailingclosures] - Comma-delimited list of functions that use trailing closures
--trailingclosures
# [nevertrailing] - List of functions that should never use trailing closures
--nevertrailing
# π[trailingCommas] - Add or remove trailing comma from the last item in a collection literal.
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#trailingCommas
--enable trailingCommas
# [commas] - Commas in collection literals: "always" (default) or "inline"
--commas always
# π[trailingSpace] - Remove trailing space at end of a line.
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#trailingSpace
--enable trailingSpace
# [trimwhitespace] - Trim trailing space: "always" (default) or "nonblank-lines"
--trimwhitespace always
# π[typeSugar] - Prefer shorthand syntax for Arrays, Dictionaries and Optionals.
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#typeSugar
--enable typeSugar
# [shortoptionals] - Use ? for Optionals "always" (default) or "except-properties"
--shortoptionals always
# π[unusedArguments] - Mark unused function arguments with _.
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#unusedArguments
--disable unusedArguments
# [stripunusedargs] - "closure-only", "unnamed-only" or "always" (default)
--stripunusedargs always
# π[void] - Use Void for type declarations and () for values.
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#void
--enable void
# [voidtype] - How Void types are represented: "void" (default) or "tuple"
--voidtype void
# π[wrap] - Wrap lines that exceed the specified maximum width.
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#wrap
--enable wrap
# [maxwidth] - Maximum length of a line before wrapping. defaults to "none"
--maxwidth none
# [nowrapoperators] - Comma-delimited list of operators that shouldn't be wrapped
--nowrapoperators
# [assetliterals] - color/image literal width. "actual-width" or "visual-width"
--assetliterals visual-width
# [wrapternary] - Wrap ternary operators: "default", "before-operators"
--wrapternary default
# π[wrapArguments] - Align wrapped function arguments or collection elements.
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#wrapArguments
--enable wrapArguments
# [wraparguments] - Wrap all arguments: "before-first", "after-first", "preserve"
--wraparguments before-first
# [wrapparameters] - Wrap func params: "before-first", "after-first", "preserve"
--wrapparameters before-first
# [wrapcollections] - Wrap array/dict: "before-first", "after-first", "preserve"
--wrapcollections before-first
# [closingparen] - Closing paren position: "balanced" (default) or "same-line"
--closingparen balanced
# [wrapreturntype] - Wrap return type: "if-multiline", "preserve" (default)
--wrapreturntype preserve
# [wrapconditions] - Wrap conditions: "before-first", "after-first", "preserve"
--wrapconditions preserve
# [wraptypealiases] - Wrap typealiases: "before-first", "after-first", "preserve"
--wraptypealiases preserve
# π[wrapAttributes] - Wrap @attributes onto a separate line, or keep them on the same line.
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#wrapAttributes
--enable wrapAttributes
# [funcattributes] - Function @attributes: "preserve", "prev-line", or "same-line"
--funcattributes preserve
# [typeattributes] - Type @attributes: "preserve", "prev-line", or "same-line"
--typeattributes preserve
# [varattributes] - Property @attributes: "preserve", "prev-line", or "same-line"
--varattributes preserve
# π[wrapMultilineStatementBraces] - Wrap the opening brace of multiline statements.
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#wrapMultilineStatementBraces
--disable wrapMultilineStatementBraces
# π[yodaConditions] - Prefer constant values to be on the right-hand-side of expressions.
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#yodaConditions
--enable yodaConditions
# [yodaswap] - Swap yoda values: "always" (default) or "literals-only"
--yodaswap always
# Opt-in Rules (disabled by default)
# π[acronyms] - Capitalizes acronyms when the first character is capitalized
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#acronyms
--disable acronyms
# [acronyms] - Acronyms to auto-capitalize. Defaults to "ID,URL,UUID".
--acronyms ID,URL,UUID
# π[blankLinesBetweenImports] - Remove blank lines between import statements.
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#blankLinesBetweenImports
--disable blankLinesBetweenImports
# π[blockComments] - Changes block comments to single line comments.
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#blockComments
--disable blockComments
# π[isEmpty] - Prefer isEmpty over comparing count against zero.
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#isEmpty
--disable isEmpty
# π[markTypes] - Adds a mark comment before top-level types and extensions.
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#markTypes
--disable markTypes
# [marktypes] - Mark types "always" (default), "never", "if-not-empty"
# --marktypes if-not-empty
# [typemark] - Template for type mark comments. Defaults to "MARK: - %t"
--typemark "MARK: - %t"
# [markextensions] - Mark extensions "always" (default), "never", "if-not-empty"
# --markextensions if-not-empty
# [extensionmark] - Mark for standalone extensions. Defaults to "MARK: - %t + %c"
--extensionmark "MARK: - %t + %c"
# [groupedextension] - Mark for extension grouped with extended type. ("MARK: %c")
--groupedextension "MARK: %c"
# π[organizeDeclarations] - Organizes declarations within class, struct, enum, actor, and extension bodies.
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#organizeDeclarations
--disable organizeDeclarations
# [categorymark] - Template for category mark comments. Defaults to "MARK: %c"
--categorymark "MARK: %c"
# [markcategories] - Insert MARK comments between categories (true by default)
--markcategories true
# [beforemarks] - Declarations placed before first mark (e.g. typealias,struct)
--beforemarks
# [lifecycle] - Names of additional Lifecycle methods (e.g. viewDidLoad)
--lifecycle
# [organizetypes] - Declarations to organize (default: class,actor,struct,enum)
# --organizetypes
# [structthreshold] - Minimum line count to organize struct body. Defaults to 0
--structthreshold 0
# [classthreshold] - Minimum line count to organize class body. Defaults to 0
--classthreshold 0
# [enumthreshold] - Minimum line count to organize enum body. Defaults to 0
--enumthreshold 0
# [extensionlength] - Minimum line count to organize extension body. Defaults to 0
--extensionlength 0
# π[preferDouble] - Replaces occurrences of CGFloat with Double when targeting Swift 5.5 and above.
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#preferDouble
--disable preferDouble
# π[sortedSwitchCases] - Sorts switch cases alphabetically.
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#sortedSwitchCases
--disable sortedSwitchCases
# π[wrapConditionalBodies] - Wrap the bodies of inline conditional statements onto a new line.
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#wrapConditionalBodies
--disable wrapConditionalBodies
# π[wrapEnumCases] - Writes one enum case per line.
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#wrapEnumCases
--disable wrapEnumCases
# π[wrapSwitchCases] - Writes one switch case per line.
# π https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#wrapSwitchCases
--disable wrapSwitchCases