-
Notifications
You must be signed in to change notification settings - Fork 103
/
.swiftlint.yml
71 lines (65 loc) · 1.6 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
excluded:
- .related
- KeePassiumLib
- KeePassium/challenge-response/MFIKeyActionSheet
disabled_rules:
- force_cast
- function_body_length
- type_body_length
- identifier_name
- file_length
- force_try
- inclusive_language
- cyclomatic_complexity
- todo
- nesting
- for_where
- block_based_kvo
- multiple_closures_with_trailing_closure
- valid_ibinspectable
- unavailable_condition
- shorthand_operator
- unused_optional_binding
- trailing_comma
- unused_closure_parameter
- opening_brace
- closure_parameter_position
analyzer_rules:
- unused_import
- unused_declaration
- capture_variable
opt_in_rules:
- block_based_kvo
- closure_spacing
- collection_alignment
- contains_over_first_not_nil
- empty_string
- empty_xctest_method
- explicit_init
- first_where
- identical_operands
- literal_expression_end_indentation
- nimble_operator
- operator_usage_whitespace
- overridden_super_call
- pattern_matching_keywords
- private_action
- prohibited_super_call
- quick_discouraged_call
- quick_discouraged_focused_test
- quick_discouraged_pending_test
- redundant_nil_coalescing
- single_test_class
- sorted_first_last
- sorted_imports
- unneeded_parentheses_in_closure_argument
- vertical_parameter_alignment_on_call
- yoda_condition
type_name:
max_length: 50
function_parameter_count:
warning: 8
error: 10
line_length:
ignores_interpolated_strings: true
ignores_urls: true