-
Notifications
You must be signed in to change notification settings - Fork 0
/
.swiftlint.yml
65 lines (54 loc) · 1 KB
/
.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
64
65
disabled_rules:
- cyclomatic_complexity
- file_length
- function_body_length
- type_body_length
- weak_delegate
opt_in_rules:
- anyobject_protocol
- closure_spacing
- collection_alignment
- contains_over_filter_count
- contains_over_filter_is_empty
- empty_collection_literal
- fallthrough
- identical_operands
- indentation_width
- legacy_multiple
- nimble_operator
- optional_enum_case_matching
- prefer_self_type_over_type_of_self
- toggle_bool
- unowned_variable_capture
excluded:
- .build
# Rule configurations
identifier_name:
min_length:
warning: 2
error: 2
function_parameter_count:
warning: 10
large_tuple:
warning: 3
error: 4
line_length:
warning: 150
error: 250
ignores_function_declarations: true
nesting:
type_level:
warning: 5
error: 5
statement_level:
error: 5
private_unit_test:
severity: error
trailing_comma:
mandatory_comma: true
type_name:
min_length:
error: 1
max_length:
warning: 50
error: 100