forked from kageroumado/phosphene
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.swiftlint.yml
More file actions
44 lines (35 loc) · 776 Bytes
/
Copy path.swiftlint.yml
File metadata and controls
44 lines (35 loc) · 776 Bytes
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
disabled_rules:
# Formatting handled by SwiftFormat
- trailing_whitespace
- trailing_comma
# Too restrictive for this codebase
- identifier_name
- type_name
- large_tuple
- nesting
- for_where
- implicit_optional_initialization
- type_body_length
# Conflicts with SwiftUI idioms
- multiple_closures_with_trailing_closure
# "whitelist" is accurate technical terminology here
- inclusive_language
# Length limits adjusted for codebase complexity
file_length:
warning: 1000
error: 1200
function_body_length:
warning: 60
error: 120
line_length:
warning: 180
error: 250
ignores_comments: true
ignores_urls: true
cyclomatic_complexity:
warning: 15
error: 25
function_parameter_count:
warning: 6
error: 8
indentation: 4