-
Notifications
You must be signed in to change notification settings - Fork 60
/
.swiftlint.yml
63 lines (49 loc) · 910 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
56
57
58
59
60
61
62
63
warning_threshold: 30
excluded:
- DiiaOpenSource/Resources/
- DiiaOpenSource/Resources/Strings/Localizable.swift
disabled_rules:
- control_statement
- trailing_whitespace
- valid_ibinspectable
opt_in_rules:
- void_return
- private_outlet
- multiline_arguments
- return_arrow_whitespace
- force_unwrapping
cyclomatic_complexity:
warning: 10
error: 20
ignores_case_statements: true
type_name:
max_length:
warning: 50
error: 60
min_length:
warning: 1
identifier_name:
max_length:
warning: 50
error: 60
min_length:
warning: 1
line_length: 250
function_body_length:
warning: 70
function_parameter_count:
warning: 10
error: 15
file_length:
warning: 500
type_body_length:
warning: 400
error: 450
nesting:
type_level:
warning: 2
analyzer_rules:
- unused_import
- unused_declaration
unused_declaration:
severity: warning