-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.swiftlint.yml
120 lines (106 loc) · 2.47 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
included: # paths to include during linting. `--path` is ignored if present.
- iMovie
excluded: # paths to ignore during linting. Takes precedence over `included`.
- Carthage
- Pods
- iMovie/Libraries
opt_in_rules:
- anyobject_protocol
- array_init
# - attributes
# - closure_body_length
# - closure_end_indentation
# - closure_spacing
# - collection_alignment
# - discouraged_optional_boolean
# - empty_count
# - empty_string
# - empty_xctest_method
# - explicit_init
# - fallthrough
# - fatal_error_message
# - first_where
# - force_unwrapping
- function_default_parameter_at_end
# - identical_operands
# - implicit_return
# - implicitly_unwrapped_optional
# - joined_default_parameter
- legacy_random
# - let_var_whitespace
# - literal_expression_end_indentation
# - modifier_order
# - multiline_parameters
# - object_literal
# - operator_usage_whitespace
# - operator_whitespace
# - overridden_super_call
# - override_in_extension
# - private_action
# - prohibited_super_call
# - redundant_nil_coalescing
# - redundant_type_annotation
# - required_enum_case
# - single_test_class
# - sorted_first_last
# - static_operator
# - strict_fileprivate
# - toggle_bool
# - trailing_closure
# - unneeded_parentheses_in_closure_argument
# - untyped_error_in_catch
# - unused_import
# - unused_private_declaration
# - vertical_parameter_alignment_on_call
# - switch_case_on_newline
# - yoda_condition
disabled_rules:
- trailing_whitespace
- cyclomatic_complexity
force_cast: warning
force_try:
severity: warning
empty_count:
severity: warning
line_length: 140
cyclomatic_complexity:
warning: 15
error: 40
type_body_length:
- 300 # warning
- 400 # error
file_length:
warning: 500
error: 1200
type_name:
min_length: 1 # only warning
max_length: # warning and error
warning: 80
error: 100
excluded: iPhone # excluded via string
identifier_name:
min_length: # only min_length
error: 1 # only error
warning: 1
excluded: # excluded via string array
- _id
- id
- qa
- URL
- Key
- iPadPro9_7Inch
- iPadPro10_5Inch
- iPadPro12_9Inch
- screen3_5Inch
- screen4_7Inch
- screen5_5Inch
- screen5_8Inch
- screen7_9Inch
- screen9_7Inch
- screen10_5Inch
- screen12_9Inch
- screen21_5Inch
function_body_length:
warning: 60
error: 100
reporter: "xcode" # reporter type (xcode, json, csv, checkstyle, junit, html, emoji)