-
Notifications
You must be signed in to change notification settings - Fork 2
/
.swiftlint.yml
51 lines (48 loc) · 926 Bytes
/
.swiftlint.yml
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
excluded: # paths to ignore during linting. Takes precedence over `included`.
- Sources/TokenDWallet/Xdr
- Carthage
- Pods
- Example/Pods
disabled_rules: # rule identifiers to exclude from running
- multiple_closures_with_trailing_closure
- operator_whitespace
- trailing_whitespace
- function_parameter_count
- cyclomatic_complexity
- discouraged_direct_init
- nesting
- large_tuple
- block_based_kvo
- todo
- fallthrough
line_length: 120
type_body_length:
warning: 400
error: 600
file_length:
warning: 800
error: 1000
function_body_length:
warning: 100 # Should be 20
error: 200 # Should 40
identifier_name:
min_length: 2
excluded:
- a
- b
- c
- x
- y
- n
- r
- p
- _default
- _domain
- _selected
type_name:
max_length: 50
excluded:
- iPhone
- iPhoneSize
nesting:
level: 2