generated from perseusrealdeal/TheTechnologicalTree
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.swiftlint.yml
53 lines (41 loc) · 844 Bytes
/
.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
reporter: "xcode" # reporter type (xcode, json, csv, checkstyle, junit, html, emoji)
opt_in_rules:
- empty_count
# - missing_docs
disabled_rules:
# - colon
# - comma
# - control_statement
- block_based_kvo
force_cast: warning
force_try:
severity: warning
identifier_name: # Variable name
allowed_symbols: "_"
min_length: 2
max_length:
warning: 40
error: 45
file_length:
warning: 200
error: 300
ignore_comment_only_lines: false
line_length: 95
type_name:
min_length: 4 # only warning
max_length: # warning and error
warning: 40
error: 50
# allowed_symbols: ["_"] # these are allowed in type names
type_body_length:
- 300 # warning
- 400 # error
function_body_length:
- 60 # warning
- 90 # error
function_parameter_count:
- 4 # warning
- 5 # error
large_tuple:
warning: 4
error: 5