-
Notifications
You must be signed in to change notification settings - Fork 1
/
.swiftlint.yml
64 lines (59 loc) · 1.37 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
excluded: # paths to ignore during linting. Takes precedence over `included`.
- Pods
disabled_rules:
- block_based_kvo
- discarded_notification_center_observer
- explicit_type_interface
- file_length
- implicit_getter
- implicitly_unwrapped_optional
- leading_whitespace
- let_var_whitespace
- notification_center_detachment
- private_over_fileprivate
- sorted_imports
- strict_fileprivate
- todo
- trailing_closure
- trailing_whitespace
- type_body_length
- valid_ibinspectable
- unused_optional_binding
- nesting
- force_cast
opt_in_rules:
- array_init
- closure_end_indentation
- closure_spacing
- contains_over_first_not_nil
- empty_count
- explicit_init
- extension_access_modifier
- fatal_error_message
- file_header
- first_where
- force_unwrapping
- joined_default_parameter
- literal_expression_end_indentation
- multiline_parameters
- operator_usage_whitespace
- override_in_extension
- private_outlet
- redundant_nil_coalescing
- sorted_first_last
- switch_case_on_newline
- unneeded_parentheses_in_closure_argument
- vertical_parameter_alignment_on_call
line_length:
- 200 #warning
- 350 #error
cyclomatic_complexity:
- 15 #warning
- 20 #error
function_parameter_count:
- 6 #warning
identifier_name:
min_length: 2 #warning
max_length: #warning or error
warning: 40
error: 50