-
-
Notifications
You must be signed in to change notification settings - Fork 122
Expand file tree
/
Copy path.swiftlint.yml
More file actions
83 lines (71 loc) · 1.43 KB
/
.swiftlint.yml
File metadata and controls
83 lines (71 loc) · 1.43 KB
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
# SwiftLint configuration for Hex
disabled_rules:
- trailing_whitespace
- line_length
- force_cast
- identifier_name
- type_name
opt_in_rules:
- empty_count
- closure_spacing
- collection_alignment
- contains_over_first_not_nil
- empty_string
- first_where
- force_unwrapping
- implicitly_unwrapped_optional
- last_where
- multiline_function_chains
- multiline_parameters
- operator_usage_whitespace
- overridden_super_call
- prefer_self_type_over_type_of_self
- redundant_nil_coalescing
- sorted_first_last
- trailing_closure
- unneeded_parentheses_in_closure_argument
- vertical_parameter_alignment_on_call
- yoda_condition
excluded:
- build
- .build
- SourcePackages
- DerivedData
- .swiftpm
- Hex.xcodeproj
- HexTests
line_length:
warning: 150
error: 200
ignores_function_declarations: true
ignores_comments: true
ignores_urls: true
function_body_length:
warning: 60
error: 100
file_length:
warning: 500
error: 1000
type_body_length:
warning: 300
error: 500
large_tuple:
warning: 3
error: 4
function_parameter_count:
warning: 6
error: 8
cyclomatic_complexity:
warning: 15
error: 20
nesting:
type_level:
warning: 2
function_level:
warning: 3
custom_rules:
tca_reducer_protocol:
name: "TCA Reducer Protocol"
regex: "struct\\s+\\w+:\\s*Reducer"
message: "Consider using ReducerProtocol for TCA reducers"
severity: warning