-
Notifications
You must be signed in to change notification settings - Fork 0
/
.swiftlint.yml
60 lines (50 loc) · 1.01 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
disabled_rules:
- cyclomatic_complexity
- identifier_name
- inclusive_language
- notification_center_detachment
- trailing_whitespace
included:
- Sources
excluded:
- Tests
file_length: 1000
function_body_length: 400
function_parameter_count:
warning: 15
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: 200
error: 250
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: 600
error: 800
type_name:
min_length: 1
max_length: 50
validates_start_with_lowercase: error
validate_protocols: true