-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.swiftformat
133 lines (123 loc) · 2.88 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
--disable enumNamespaces
--disable extensionAccessControl
# spaces
--enable spaceAroundBraces
--enable spaceAroundBrackets
--enable spaceAroundComments
--enable spaceAroundGenerics
--operatorfunc spaced
--ranges spaced
--nospaceoperators ...,..<
--enable spaceAroundParens
--enable spaceInsideBraces
--enable spaceInsideBrackets
--enable spaceInsideComments
--enable spaceInsideGenerics
--enable spaceInsideParens
# redundance
--enable redundantBackticks
--enable redundantBreak
--enable redundantExtensionACL
--enable redundantFileprivate
--enable redundantGet
--enable redundantInit
--enable redundantObjc
--enable redundantParens
--enable redundantPattern
--enable redundantReturn
--redundanttype inferred
--enable redundantVoidReturnType
# imports
--importgrouping alphabetized
--enable duplicateImports
# indentation
--indent 4
--indentcase false
--ifdef indent
--xcodeindentation disabled
# line breaks
--linebreaks lf
--enable linebreakAtEndOfFile
# markTypes
--markextensions always
--typemark "MARK: - %t"
--marktypes always
--groupedextension "MARK: %c"
# number formatting
--decimalgrouping 3,6
--binarygrouping 4,8
--octalgrouping 4,8
--hexgrouping 4,8
--fractiongrouping disabled
--exponentgrouping disabled
--hexliteralcase lowercase
--exponentcase uppercase
# organizeDeclarations
--categorymark "MARK: %c"
--enable todos
--trailingclosures
--enable trailingCommas
--nevertrailing
--enable strongifiedSelf
--enable strongOutlets
--enable sortedSwitchCases
--semicolons
--enable andOperator
--enable anyObjectProtocol
--enable blankLinesAroundMark
--enable blankLinesAtEndOfScope
--enable blankLinesAtStartOfScope
--enable blankLinesBetweenScopes
--allman false
--elseposition next-line
--guardelse next-line
--enable consecutiveBlankLines
--enable consecutiveSpaces
--enable emptyBraces
--enable enumNamespaces
--header strip
--patternlet hoist
--enable initCoderUnavailable
--enable isEmpty
--enable leadingDelimiters
--modifierorder
--exclude Pods, Celly/Source/Services/Localization/L10n.swift, Celly/Source/Config/*.swift
--commas always
--assetliterals visual-width
--beforemarks
--classthreshold 0
--closingparen balanced
--conflictmarkers reject
--enumthreshold 0
--extensionacl on-extension
--extensionlength 0
--extensionmark "MARK: - %t + %c"
--fragment false
--funcattributes prev-line
--guardelse auto
--lifecycle
--maxwidth 100
--modifierorder
--nowrapoperators
--organizetypes class,enum,struct
--self insert
--selfrequired
--semicolons inline
--shortoptionals always
--smarttabs enabled
--stripunusedargs always
--structthreshold 0
--tabwidth unspecified
--trimwhitespace always
--typeattributes prev-line
--varattributes prev-line
--voidtype void
--wraparguments before-first
--wrapcollections before-first
--wrapconditions before-first
--wrapparameters before-first
--wrapreturntype preserve
--yodaswap always
--enable wrapEnumCases
--enable wrapSwitchCases
--enable wrapMultilineStatementBraces