-
Notifications
You must be signed in to change notification settings - Fork 0
/
.swiftlint.yml
59 lines (44 loc) · 930 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
52
53
54
55
included: # paths to include during linting. `--path` is ignored if present.
- MyRide
excluded: # paths to ignore during linting. Takes precedence over `included`.
- Pods
- MyRideTests
- MyRideUITests
disabled_rules:
- trailing_whitespace
- implicit_getter
opt_in_rules:
- variable_name
- empty_count
- force_cast
- force_try
- force_unwrapping
- function_default_parameter_at_end
- legacy_random
- leading_whitespace
- function_body_length
- function_parameter_count
- legacy_constant
- operator_whitespace
- return_arrow_whitespace
- todo
- nesting
force_cast: warning
force_try:
severity: warning
empty_count:
severity: warning
line_length: 140
cyclomatic_complexity:
warning: 15
error: 40
type_body_length:
- 300 # warning
- 400 # error
identifier_name:
min_length:
warning: 3
error: 1
excluded: # excluded via string array
- id
- url