-
Notifications
You must be signed in to change notification settings - Fork 0
/
.swiftlint.yml
67 lines (58 loc) · 1.34 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
disabled_rules:
- empty_enum_arguments
- vertical_parameter_alignment_on_call
- weak_delegate
- vertical_parameter_alignment
- closure_parameter_position
- todo
- multiple_closures_with_trailing_closure
opt_in_rules:
- empty_count
- explicit_init
- closure_spacing
- overridden_super_call
- redundant_nil_coalescing
- private_outlet
- nimble_operator
- operator_usage_whitespace
- closure_end_indentation
- first_where
- prohibited_super_call
- fatal_error_message
- unneeded_parentheses_in_closure_argument
- pattern_matching_keywords
- array_init
- literal_expression_end_indentation
- joined_default_parameter
- contains_over_first_not_nil
- override_in_extension
- private_action
- quick_discouraged_call
- quick_discouraged_focused_test
- quick_discouraged_pending_test
- single_test_class
- sorted_first_last
analyzer_rules: # Rules run by `swiftlint analyze` (experimental)
- explicit_self
warning_threshold: 1
line_length: 120
type_body_length:
- 300 # warning
- 300 # error
file_length:
warning: 400 # warning
error: 400 # error
identifier_name:
min_length:
error: 2
max_length:
error: 50
excluded:
- id
- _id
indentation: 2
excluded:
- derivedData
- test_output
- fastlane
reporter: "xcode" # reporter type (xcode, json, csv, checkstyle, junit, html, emoji)