-
Notifications
You must be signed in to change notification settings - Fork 0
/
.swiftlint.yml
123 lines (119 loc) · 2.84 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
# Updated for 0.57.0
excluded:
- ".build"
- "**/*pb.swift"
opt_in_rules:
- attributes
- closure_end_indentation
- closure_spacing
- conditional_returns_on_newline
- empty_count
- explicit_init
- fatal_error_message
- first_where
- implicit_return
- let_var_whitespace
- multiline_parameters
- nimble_operator
- no_extension_access_modifier
- number_separator
- object_literal
- operator_usage_whitespace
- overridden_super_call
- private_outlet
- prohibited_super_call
- redundant_nil_coalescing
- sorted_imports
- switch_case_on_newline
- vertical_parameter_alignment_on_call
- unneeded_parentheses_in_closure_argument
- trailing_closure
- joined_default_parameter
- single_test_class
- pattern_matching_keywords
- contains_over_first_not_nil
- array_init
- multiline_arguments
- literal_expression_end_indentation
- strict_fileprivate
- sorted_first_last
- override_in_extension
- private_action
- yoda_condition
- discouraged_optional_boolean
- empty_string
- untyped_error_in_catch
- discouraged_optional_collection
- fallthrough
- modifier_order
- unavailable_function
- multiline_function_chains
- redundant_set_access_control
- empty_xctest_method
- function_default_parameter_at_end
- file_name
- convenience_type
- missing_docs
- legacy_random
- closure_body_length
- toggle_bool
- identical_operands
- collection_alignment
- multiline_literal_brackets
- multiline_parameters_brackets
- xct_specific_matcher
- last_where
- strong_iboutlet
- reduce_into
- file_types_order
- type_contents_order
- nslocalizedstring_require_bundle
- unowned_variable_capture
- legacy_multiple
- contains_over_filter_count
- contains_over_filter_is_empty
- empty_collection_literal
- contains_over_range_nil_comparison
- flatmap_over_map_reduce
- raw_value_for_camel_cased_codable_enum
- enum_case_associated_values_count
- optional_enum_case_matching
- prefer_self_type_over_type_of_self
- orphaned_doc_comment
- prefer_zero_over_explicit_init
- test_case_accessibility
- discouraged_assert
- legacy_objc_type
- private_subject
- discouraged_none_name
- redundant_type_annotation
- prefer_self_in_static_references
- weak_delegate
- return_value_from_void_function
- accessibility_label_for_image
- comma_inheritance
- self_binding
- accessibility_trait_for_button
- shorthand_optional_binding
- direct_return
- period_spacing
- superfluous_else
- redundant_self_in_closure
- unhandled_throwing_task
- private_swiftui_state
- final_test_case
- prefer_key_path
- no_empty_block
- unused_parameter
disabled_rules:
- trailing_comma
line_length: 175
function_body_length: 30
identifier_name:
max_length:
warning: 45
type_name:
max_length:
warning: 45
number_separator:
minimum_fraction_length: 3