forked from nikitabobko/AeroSpace
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.swiftformat
More file actions
33 lines (30 loc) · 981 Bytes
/
.swiftformat
File metadata and controls
33 lines (30 loc) · 981 Bytes
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
# https://github.com/nicklockwood/SwiftFormat/blob/main/Rules.md
--exclude ./ShellParserGenerated
--indentcase true
--patternlet inline
--indentstrings true
# https://github.com/nicklockwood/SwiftFormat/issues/483 fix indentation for expressions nested in ternary
--wrapternary before-operators
--disable andOperator
--disable blankLinesBetweenScopes
--disable consecutiveSpaces
--disable consistentSwitchCaseSpacing
--disable hoistAwait
--disable hoistTry
--disable preferKeyPath
--disable redundantInit
--disable redundantNilInit
--disable redundantParens
--disable redundantRawValues
--disable redundantReturn
--disable redundantSelf
--disable redundantStaticSelf
--disable redundantType
--disable sortImports
--disable spaceAroundComments
--disable spaceInsideComments
--disable void
--disable wrapArguments
--disable wrapMultilineConditionalAssignment
# This rule is cool but buggy. It feels like heuristics are used instead of real code analysis
--disable unusedArguments