This repository has been archived by the owner on Apr 15, 2020. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 46
/
.swiftlint.yml
88 lines (76 loc) · 1.59 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
excluded:
- Pods
- docs
- build
- scripts
disabled_rules:
# metrics
- nesting
# lint
- notification_center_detachment
- weak_delegate
# idiomatic
- force_cast
- type_name
# style
- identifier_name
opt_in_rules:
# performance
- empty_count
- first_where
- sorted_first_last
- contains_over_first_not_nil
- last_where
- reduce_into
- contains_over_filter_count
- contains_over_filter_is_empty
- empty_collection_literal
# idiomatic
- fatal_error_message
- xctfail_message
- discouraged_object_literal
- discouraged_optional_boolean
# - discouraged_optional_collection
- for_where
- function_default_parameter_at_end
- legacy_random
- no_extension_access_modifier
- redundant_type_annotation
- static_operator
- toggle_bool
- unavailable_function
- no_space_in_method_call
# style
- attributes
- number_separator
- operator_usage_whitespace
- sorted_imports
- vertical_parameter_alignment_on_call
- void_return
- closure_spacing
- empty_enum_arguments
- implicit_return
- modifier_order
- multiline_arguments
- multiline_parameters
- trailing_closure
- unneeded_parentheses_in_closure_argument
- vertical_whitespace_between_cases
# lint
- overridden_super_call
- yoda_condition
- anyobject_protocol
- array_init
- empty_xctest_method
- identical_operands
- prohibited_super_call
- unused_import
- unused_capture_list
- duplicate_enum_cases
- legacy_multiple
- unused_declaration
line_length: 200
file_length: 600
type_body_length: 500
function_body_length: 250
cyclomatic_complexity: 15