-
Notifications
You must be signed in to change notification settings - Fork 152
/
.swiftlint.yml
101 lines (87 loc) · 1.86 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
disabled_rules:
- identifier_name
- trailing_whitespace
- force_cast
- force_unwrapping
- force_try
- shorthand_operator
- syntactic_sugar
- function_parameter_count
- weak_delegate
- multiple_closures_with_trailing_closure
- compiler_protocol_init
- unused_optional_binding
- cyclomatic_complexity
- redundant_string_enum_value
- switch_case_alignment
- void_return
- notification_center_detachment
- block_based_kvo
- for_where
- class_delegate_protocol
- inert_defer
opt_in_rules:
- vertical_whitespace_opening_braces
- vertical_whitespace_closing_braces
- closure_end_indentation
- closure_spacing
excluded:
- Pods
- JSONConverter/Vendor
line_length:
warning: 600
error: 900
ignores_comments: true
file_length:
warning: 2000
error: 3000
type_name:
min_length: 4
max_length:
warning: 60
error: 80
type_body_length:
- 1200
- 1600
function_body_length:
warning: 400
error: 600
large_tuple:
warning: 6
error: 8
computed_accessors_order:
order: get_set
severity: error
vertical_whitespace:
max_empty_lines: 1
severity: error
statement_position:
statement_mode: default
severity: error
colon:
flexible_right_spacing: false
apply_to_dictionaries: true
severity: error
opening_brace:
severity: error
trailing_semicolon: error
comma: error
return_arrow_whitespace: error
no_space_in_method_call: error
mark: error
operator_whitespace: error
closure_parameter_position: error
unused_capture_list: error
unused_closure_parameter: error
trailing_newline: error
control_statement: error
leading_whitespace: error
orphaned_doc_comment: error
unneeded_break_in_switch: error
closure_end_indentation: error
closure_spacing: error
redundant_optional_initialization: error
unused_enumerated: error
duplicate_imports: error
vertical_parameter_alignment: error
comment_spacing: error