-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.swiftlint.yml
82 lines (75 loc) · 1.54 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
included:
- Sources
- Tests
excluded: # paths to ignore during linting. Takes precedence over `included`.
- Pods
- fastlane
- Build
disabled_rules:
- no_space_in_method_call
- todo
- trailing_whitespace
- unused_optional_binding
- multiple_closures_with_trailing_closure
- vertical_parameter_alignment_on_call
- vertical_parameter_alignment
opt_in_rules:
- attributes
- closure_end_indentation
- contains_over_first_not_nil
- discouraged_object_literal
- empty_count
#- explicit_acl
#- explicit_top_level_acl
#- explicit_enum_raw_value
- fatal_error_message
- first_where
- for_where
#- implicitly_unwrapped_optional
#- let_var_whitespace
- literal_expression_end_indentation
- multiline_parameters
- number_separator
- operator_usage_whitespace
- overridden_super_call
- override_in_extension
- prefixed_toplevel_constant
- private_action
- private_outlet
- trailing_newline
- vertical_parameter_alignment_on_call
- force_unwrapping
- yoda_condition
function_parameter_count:
- 6 # warning
- 8 # error
type_name:
min_length:
error: 3
max_length:
warning: 60
error: 60
identifier_name:
min_length:
warning: 2
error: 2
max_length:
warning: 50
error: 60
line_length:
- 160 # warning
- 180 # error
type_body_length:
- 60 # warning
- 80 # error
function_body_length:
- 30 # warning
- 40 # error
file_length:
- 500 # warning
- 600 # error
private_outlet:
allow_private_set: true
force_cast: error
force_try: error
force_unwrapping: error