-
Notifications
You must be signed in to change notification settings - Fork 34
/
.swiftlint.yml
76 lines (68 loc) · 1.56 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
analyzer_rules:
- sorted_imports
- unused_import
included:
- Sources
- Tests
opt_in_rules:
- anyobject_protocol
- array_init
- closure_end_indentation
- closure_spacing
- collection_alignment
- contains_over_filter_count
- contains_over_filter_is_empty
- contains_over_first_not_nil
- contains_over_range_nil_comparison
- discouraged_object_literal
- empty_collection_literal
- empty_count
- empty_string
- enum_case_associated_values_count
- explicit_init
- fallthrough
- fatal_error_message
- first_where
- force_unwrapping
- identical_operands
- implicitly_unwrapped_optional
- last_where
- lower_acl_than_parent
- multiline_arguments_brackets
- multiline_literal_brackets
- multiline_parameters
- multiline_parameters_brackets
- operator_usage_whitespace
- optional_enum_case_matching
- private_action
- private_outlet
- prohibited_interface_builder
- reduce_into
- redundant_type_annotation
- sorted_first_last
- static_operator
- switch_case_on_newline
- toggle_bool
- unavailable_function
- unowned_variable_capture
- vertical_whitespace_opening_braces
- vertical_whitespace_closing_braces
- yoda_condition
force_unwrapping: error
disabled_rules:
- identifier_name
- type_name
- multiline_function_chains
- multiple_closures_with_trailing_closure
- todo
line_length:
warning: 150
ignores_comments: true
cyclomatic_complexity:
ignores_case_statements: true
nesting:
type_level: 3
file_length: 750
large_tuple: 3
function_parameter_count: 10
function_body_length: 60