-
Notifications
You must be signed in to change notification settings - Fork 104
Expand file tree
/
Copy path.swiftformat
More file actions
76 lines (60 loc) · 1.36 KB
/
.swiftformat
File metadata and controls
76 lines (60 loc) · 1.36 KB
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
# SwiftFormat configuration for STTextView
# Inferred from existing codebase conventions
--strip-unused-args closure-only
# Format version
--swiftversion 5.9
# Indentation
--indent 4
--tabwidth 4
--smarttabs enabled
--indentcase false
--ifdef indent
# Braces
--allman false
# Line wrapping
--maxwidth 1000
--wraparguments disabled
--wrapparameters disabled
--wrapcollections before-first
--wrapconditions after-first
--wrapreturntype if-multiline
--wrapeffects if-multiline
--closingparen balanced
# Spacing
--operatorfunc spaced
--nospaceoperators
--ranges spaced
--typeattributes prev-line
--varattributes prev-line
--storedvarattrs prev-line
--computedvarattrs prev-line
# Blank lines
--emptybraces no-space
# Self
--self insert
--selfrequired
# Semicolons
--semicolons never
# Trailing commas
--commas inline
# Void
--voidtype void
# Redundant
--redundanttype inferred
# Imports
--importgrouping alpha
# Header comments
--header ignore
# Exclude build artifacts and dependencies
--exclude .build,Packages,TextEdit.SwiftUI,TextEdit.UIKit
# Disabled rules (to preserve existing style)
--disable blankLinesAtStartOfScope
--disable blankLinesAtEndOfScope
--disable consecutiveBlankLines
--disable trailingCommas
--disable sortImports
--disable organizeDeclarations
--disable wrapMultilineStatementBraces
--disable redundantSelf
--disable redundantReturn
--disable redundantParens