-
Notifications
You must be signed in to change notification settings - Fork 0
/
.swiftlint.yml
106 lines (94 loc) · 2.07 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
opt_in_rules:
- array_init
- closure_body_length
- closure_spacing
- closure_end_indentation
- collection_alignment
- conditional_returns_on_newline
- contains_over_first_not_nil
- convenience_type
- empty_count
- empty_xctest_method
- explicit_init
- extension_access_modifier
- empty_string
- fallthrough
- fatal_error_message
- first_where
- implicit_return
- joined_default_parameter
- last_where
- legacy_multiple
- legacy_random
- let_var_whitespace
- literal_expression_end_indentation
- lower_acl_than_parent
- modifier_order
- multiline_function_chains
- multiline_parameters
- nimble_operator
- operator_usage_whitespace
- overridden_super_call
- private_action
- prohibited_super_call
- quick_discouraged_call
- quick_discouraged_focused_test
- quick_discouraged_pending_test
- reduce_into
- redundant_nil_coalescing
- redundant_type_annotation
- required_enum_case
- single_test_class
- sorted_first_last
- strong_iboutlet
- switch_case_on_newline
- toggle_bool
- unneeded_parentheses_in_closure_argument
- untyped_error_in_catch
- vertical_parameter_alignment_on_call
- vertical_whitespace_closing_braces
- xct_specific_matcher
- yoda_condition
disabled_rules: # rule identifiers to exclude from running
- blanket_disable_command
- multiline_arguments
- closure_parameter_position
- force_cast
- line_length
- multiple_closures_with_trailing_closure
- todo
- trailing_whitespace
- xctfail_message
excluded: # paths to ignore during linting. overridden by `included`
- Carthage
- Pods
closure_body_length:
- 100 # warning
- 200 # error
cyclomatic_complexity:
- 20 # warning
- 25 # error
large_tuple:
- 3 # warning
- 4 # error
file_length:
- 1200 # warning
- 1500 # error
function_body_length:
- 100 # warning
- 300 # error
type_body_length:
- 1000 # warning
- 1500 # error
type_name:
allowed_symbols:
- _
identifier_name:
min_length: 3
max_length: 75
excluded:
- by
- id
- db
conditional_returns_on_newline:
if_only: true