forked from nikitabobko/AeroSpace
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.swiftformat
29 lines (26 loc) · 905 Bytes
/
.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
# https://github.com/nicklockwood/SwiftFormat/blob/main/Rules.md
--exclude Sources/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 hoistTry
--disable preferKeyPath
--disable redundantNilInit
--disable redundantParens
--disable redundantRawValues
--disable redundantReturn
--disable redundantSelf
--disable redundantStaticSelf
--disable redundantType
--disable spaceAroundComments
--disable spaceInsideComments
--disable wrapArguments
--disable wrapMultilineConditionalAssignment
# This rule is cool but buggy. It feels like heuristics are used instead of real code analysis
--disable unusedArguments