-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.swiftlint.yml
57 lines (48 loc) · 1.11 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
excluded: # paths to ignore during linting. Takes precedence over `included`.
- Pods
disabled_rules:
- colon
- nesting
- opening_brace
- todo
- trailing_comma
opt_in_rules:
- control_statement
- empty_count
- trailing_newline
- colon
- comma
type_body_length:
- 300 # warning
- 500 # error
line_length:
- 130 # warning
- 150 # error
file_length:
- 500 # warning
- 800 # error
large_tuple: # warn user when using 3 values in tuple, give error if there are 4
- 3
- 4
# naming rules can set warnings/errors for min_length and max_length
# additionally they can set excluded names
identifier_name:
min_length: 2 # only warning
max_length: # warning and error
warning: 50
error: 55
excluded:
- i
- x
- y
# naming rules can set warnings/errors for min_length and max_length
# additionally they can set excluded names
type_name:
min_length: 4 # only warning
max_length: # warning and error
warning: 50
error: 55
excluded:
- iPhone # excluded via string
- C
reporter: "xcode"