forked from thumbtack/star
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.swiftlint.yml
79 lines (69 loc) · 1.52 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
disabled_rules:
- closure_parameter_position
- cyclomatic_complexity
- file_length
- force_cast
- force_try
- function_body_length
- nesting
- todo
- type_body_length
- for_where
- no_fallthrough_only
# All the following Handled by SwiftFormat.
- closure_end_indentation
- closure_spacing
- explicit_init
- literal_expression_end_indentation
- operator_usage_whitespace
- private_over_fileprivate
- redundant_void_return
- return_arrow_whitespace
- trailing_comma
- vertical_parameter_alignment
- vertical_parameter_alignment_on_call
- vertical_whitespace
- implicit_return
opt_in_rules:
- array_init
- block_based_kvo
- contains_over_first_not_nil
- discouraged_direct_init
- empty_count
- empty_string
- empty_xctest_method
- extension_access_modifier
- fatal_error_message
- first_where
- identical_operands
- implicit_return
- implicitly_unwrapped_optional
- joined_default_parameter
- multiline_parameters
- multiple_closures_with_trailing_closure
- nimble_operator
- overridden_super_call
- private_unit_test
- prohibited_super_call
- protocol_property_accessors_order
- redundant_nil_coalescing
- redundant_set_access_control
- unneeded_parentheses_in_closure_argument
analyzer_rules:
- unused_import
indentation: 4
weak_delegate: error
function_parameter_count:
warning: 8
error: 8
large_tuple:
warning: 3
error: 3
identifier_name:
min_length: 0
max_length: 42
type_name:
max_length: 52
line_length: 200
excluded:
- .build