Skip to content

Commit 0030ce0

Browse files
committed
[TIDY] Update swiftformat rules
1 parent 35aed73 commit 0030ce0

File tree

1 file changed

+106
-69
lines changed

1 file changed

+106
-69
lines changed

scripts/swiftformat.yml

Lines changed: 106 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -1,79 +1,116 @@
11
--acronyms ID,URL,UUID
22
--allman false
3-
--assetliterals visual-width
4-
--beforemarks
5-
--binarygrouping 4,8
6-
--categorymark "MARK: %c"
7-
--classthreshold 0
8-
--closingparen balanced
9-
--closurevoid remove
10-
--commas always
11-
--conflictmarkers reject
12-
--decimalgrouping 3,6
13-
--elseposition same-line
14-
--emptybraces no-space
15-
--enumnamespaces always
16-
--enumthreshold 0
17-
--exponentcase lowercase
18-
--exponentgrouping disabled
19-
--extensionacl on-extension
20-
--extensionlength 0
21-
--extensionmark "MARK: - %t + %c"
22-
--fractiongrouping disabled
3+
--anonymous-for-each convert
4+
--asset-literals visual-width
5+
--async-capturing
6+
--before-marks
7+
--binary-grouping 4,8
8+
--call-site-paren default
9+
--category-mark "MARK: %c"
10+
--class-threshold 0
11+
--closing-paren balanced
12+
--closure-void remove
13+
--complex-attributes preserve
14+
--computed-var-attributes preserve
15+
--conditional-assignment after-property
16+
--conflict-markers reject
17+
--date-format system
18+
--decimal-grouping 3,6
19+
--doc-comments before-declarations
20+
--else-position same-line
21+
--empty-braces no-space
22+
--enum-namespaces always
23+
--enum-threshold 0
24+
--equatable-macro none
25+
--exponent-case lowercase
26+
--exponent-grouping disabled
27+
--extension-acl on-extension
28+
--extension-mark "MARK: - %t + %c"
29+
--extension-threshold 0
30+
--file-macro "#file"
31+
--fraction-grouping disabled
2332
--fragment false
24-
--funcattributes prev-line
25-
--generictypes
26-
--groupedextension "MARK: %c"
27-
--guardelse same-line
33+
--func-attributes prev-line
34+
--generic-types
35+
--group-blank-lines true
36+
--grouped-extension "MARK: %c"
37+
--guard-else same-line
2838
--header ignore
29-
--hexgrouping 4,8
30-
--hexliteralcase uppercase
39+
--hex-grouping 4,8
40+
--hex-literal-case uppercase
3141
--ifdef indent
32-
--importgrouping length
42+
--import-grouping length
3343
--indent 4
34-
--indentcase false
35-
--indentstrings false
36-
--lifecycle
37-
--lineaftermarks false
44+
--indent-case false
45+
--indent-strings false
46+
--inferred-types always
47+
--init-coder-nil false
48+
--language-mode 0
49+
--lifecycle
50+
--line-after-marks false
51+
--line-between-guards false
3852
--linebreaks lf
39-
--markcategories true
40-
--markextensions always
41-
--marktypes always
42-
--maxwidth none
43-
--modifierorder
44-
--nevertrailing
45-
--nospaceoperators
46-
--nowrapoperators
47-
--octalgrouping 4,8
48-
--operatorfunc spaced
49-
--organizetypes actor,class,enum,struct
50-
--patternlet hoist
53+
--mark-categories true
54+
--mark-extensions always
55+
--mark-types always
56+
--max-width none
57+
--modifier-order
58+
--never-trailing
59+
--nil-init remove
60+
--no-space-operators
61+
--no-wrap-operators
62+
--non-complex-attributes
63+
--octal-grouping 4,8
64+
--operator-func spaced
65+
--organization-mode visibility
66+
--organize-types actor,class,enum,struct
67+
--pattern-let hoist
68+
--preserve-acronyms
69+
--preserve-decls
70+
--preserved-property-types Package
71+
--property-types infer-locals-only
5172
--ranges spaced
52-
--redundanttype infer-locals-only
5373
--self remove
54-
--selfrequired
74+
--self-required
5575
--semicolons inline
56-
--shortoptionals always
57-
--smarttabs enabled
58-
--someAny true
59-
--stripunusedargs always
60-
--structthreshold 0
61-
--tabwidth unspecified
62-
--trailingclosures
63-
--trimwhitespace always
64-
--typeattributes prev-line
65-
--typeblanklines remove
66-
--typemark "MARK: - %t"
67-
--varattributes same-line
68-
--voidtype void
69-
--wraparguments before-first
70-
--wrapcollections before-first
71-
--wrapconditions preserve
72-
--wrapparameters before-first
73-
--wrapreturntype preserve
74-
--wrapternary default
75-
--wraptypealiases preserve
76-
--xcodeindentation disabled
77-
--yodaswap always
78-
--disable enumNamespaces,extensionAccessControl,fileHeader,genericExtensions,modifierOrder,numberFormatting,opaqueGenericParameters,preferKeyPath,redundantBackticks,redundantExtensionACL,redundantFileprivate,redundantPattern,redundantRawValues,redundantSelf,sortDeclarations,spaceAroundGenerics,strongOutlets,trailingClosures,trailingCommas,unusedArguments,wrap,wrapMultilineStatementBraces,wrapSingleLineComments,yodaConditions,consecutiveSpaces
79-
--enable blankLineAfterImports,blankLinesBetweenImports,isEmpty,wrapConditionalBodies
76+
--short-optionals always
77+
--single-line-for-each ignore
78+
--smart-tabs enabled
79+
--some-any true
80+
--sort-swiftui-properties none
81+
--sorted-patterns
82+
--stored-var-attributes preserve
83+
--strip-unused-args always
84+
--struct-threshold 0
85+
--swift-version 5.9
86+
--tab-width unspecified
87+
--throw-capturing
88+
--timezone system
89+
--trailing-closures
90+
--trailing-commas always
91+
--trim-whitespace always
92+
--type-attributes prev-line
93+
--type-blank-lines remove
94+
--type-delimiter space-after
95+
--type-mark "MARK: - %t"
96+
--type-marks
97+
--type-order
98+
--url-macro none
99+
--visibility-marks
100+
--visibility-order
101+
--void-type void
102+
--wrap-arguments before-first
103+
--wrap-collections before-first
104+
--wrap-conditions preserve
105+
--wrap-effects preserve
106+
--wrap-enum-cases always
107+
--wrap-parameters before-first
108+
--wrap-return-type preserve
109+
--wrap-string-interpolation default
110+
--wrap-ternary default
111+
--wrap-type-aliases preserve
112+
--xcode-indentation disabled
113+
--xctest-symbols
114+
--yoda-swap always
115+
--disable consecutiveSpaces,enumNamespaces,extensionAccessControl,fileHeader,genericExtensions,modifierOrder,numberFormatting,opaqueGenericParameters,preferKeyPath,redundantBackticks,redundantExtensionACL,redundantFileprivate,redundantPattern,redundantRawValues,redundantSelf,sortDeclarations,spaceAroundGenerics,strongOutlets,trailingClosures,trailingCommas,unusedArguments,wrap,wrapMultilineStatementBraces,wrapSingleLineComments,yodaConditions
116+
--enable blankLinesBetweenImports,isEmpty,wrapConditionalBodies

0 commit comments

Comments
 (0)