-
Notifications
You must be signed in to change notification settings - Fork 1
/
.swiftlint.yml
53 lines (45 loc) · 962 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
disabled_rules:
- cyclomatic_complexity
- identifier_name
- notification_center_detachment
- trailing_whitespace
file_length: 500
function_body_length: 200
function_parameter_count:
warning: 10
error: 20
large_tuple:
warning: 4
error: 8
line_length:
ignores_function_declarations: true
ignores_comments: true
ignores_interpolated_strings: true
ignores_urls: true
warning: 160
error: 200
nesting:
type_level:
warning: 2
error: 4
opt_in_rules: # some rules are only opt-in
- closure_end_indentation
- closure_spacing
- explicit_init
- first_where
- object_literal
- operator_usage_whitespace
- overridden_super_call
- redundant_nil_coalescing
- sorted_imports
- syntactic_sugar
switch_case_alignment:
indented_cases: true
type_body_length:
warning: 400
error: 600
type_name:
min_length: 1
max_length: 50
validates_start_with_lowercase: true
validate_protocols: true