-
Notifications
You must be signed in to change notification settings - Fork 0
/
.swiftlint.yml
89 lines (83 loc) · 1.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
opt_in_rules:
- force_unwrapping
- empty_count
- trailing_newline
- colon
- comma
- duplicate_imports
- fatal_error_message
- first_where
- weak_delegate
- void_return
- fallthrough
- yoda_condition
- sorted_imports
- sorted_first_last
- identical_operands
- file_name_no_space
- empty_string
- discouraged_none_name
- contains_over_first_not_nil
- accessibility_label_for_image
- accessibility_trait_for_button
- anonymous_argument_in_multiline_closure
- implicit_return
- implicitly_unwrapped_optional
- redundant_type_annotation
- private_over_fileprivate
- redundant_nil_coalescing
- joined_default_parameter
- explicit_init
- convenience_type
- legacy_multiple
- toggle_bool
- discouraged_object_literal
- flatmap_over_map_reduce
- untyped_error_in_catch
- operator_usage_whitespace
- optional_enum_case_matching
- modifier_order
- contains_over_filter_count
- contains_over_filter_is_empty
- contains_over_range_nil_comparison
- empty_collection_literal
- overridden_super_call
- prohibited_super_call
- prefer_zero_over_explicit_init
- static_operator
- unneeded_parentheses_in_closure_argument
- last_where
- closure_end_indentation
- closure_spacing
- empty_xctest_method
- pattern_matching_keywords
- single_test_class
disabled_rules:
- opening_brace
- nesting
- cyclomatic_complexity
- legacy_random
- large_tuple
- file_length
- line_length
- type_body_length
- function_body_length
- closure_end_indentation
- trailing_comma
- function_parameter_count
type_name:
min_length: 3
identifier_name:
max_length:
warning: 45
error: 50
min_length:
warning: 1
private_over_fileprivate:
validate_extensions: true
severity: error
force_unwrapping:
severity: error
redundant_type_annotation: error
excluded:
- "**/.build/**"