forked from GraphQLSwift/GraphQLTransportWS
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.swiftformat
95 lines (93 loc) · 2.43 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
# Default formatting rules for all PassiveLogic swift projects
--header "Copyright (c) 2022 PassiveLogic, Inc."
--allman false
--binarygrouping none
--decimalgrouping none
--disable redundantSelf,trailingClosures
--elseposition next-line
--exponentcase uppercase
--guardelse same-line
--hexliteralcase lowercase
--indent 4
--indentcase true
--maxwidth 140
--self insert
--semicolons never
--swiftversion 5
--trimwhitespace always
--varattributes prev-line
--typeattributes prev-line
--wrapparameters before-first
--wrapcollections before-first
--wraparguments before-first
# By default we ignore anything in the "Packages" directory as this includes Third Party code.
--exclude Packages
# Explicitly enable rules to prevent automatic opt-in
# Generated from `swiftformat --rules` on v0.47.1
--rules andOperator
--rules anyObjectProtocol
--rules blankLinesAroundMark
--rules blankLinesAtEndOfScope
--rules blankLinesAtStartOfScope
--rules blankLinesBetweenScopes
--rules braces
--rules consecutiveBlankLines
--rules consecutiveSpaces
--rules duplicateImports
--rules elseOnSameLine
--rules emptyBraces
--rules enumNamespaces
--rules extensionAccessControl
--rules fileHeader
--rules hoistPatternLet
--rules indent
--rules initCoderUnavailable
--rules leadingDelimiters
--rules linebreakAtEndOfFile
--rules linebreaks
--rules modifierOrder
--rules numberFormatting
--rules preferKeyPath
--rules redundantBackticks
--rules redundantBreak
--rules redundantExtensionACL
--rules redundantFileprivate
--rules redundantGet
--rules redundantInit
--rules redundantLet
--rules redundantLetError
--rules redundantNilInit
--rules redundantObjc
--rules redundantParens
--rules redundantPattern
--rules redundantRawValues
--rules redundantReturn
--rules redundantSelf
--rules redundantType
--disable redundantVoidReturnType # Disabled because this breaks some NIO closures
--rules semicolons
--rules sortedImports
--rules spaceAroundBraces
--rules spaceAroundBrackets
--rules spaceAroundComments
--rules spaceAroundGenerics
--rules spaceAroundOperators
--rules spaceAroundParens
--rules spaceInsideBraces
--rules spaceInsideBrackets
--rules spaceInsideComments
--rules spaceInsideGenerics
--rules spaceInsideParens
--rules strongOutlets
--rules strongifiedSelf
--rules todos
--rules trailingClosures
--rules trailingCommas
--rules trailingSpace
--rules unusedArguments
--rules void
--rules wrap
--rules wrapArguments
--rules wrapAttributes
--rules wrapMultilineStatementBraces
--rules yodaConditions