-
Notifications
You must be signed in to change notification settings - Fork 235
/
.swiftlint.yml
63 lines (63 loc) · 1.24 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
disabled_rules:
- private_outlet
opt_in_rules:
- overridden_super_call
- attributes
- conditional_returns_on_newline
- closure_spacing
- force_unwrapping
- private_outlet
- switch_case_on_newline
- contains_over_first_not_nil
- empty_count
- empty_string
- first_where
- last_where
- sorted_first_last
included: # paths to include during linting. `--path` is ignored if present.
- HabitRPG
- Habitica Models
- Habitica Database
- Habitica API Client
- Habitica Intents
- Habitica Widgets
excluded: # paths to ignore during linting. Takes precedence over `included`.
- Pods
- HabitRPG/Utilities/HabiticaIcons.swift
line_length: 200
type_body_length:
- 350 # warning
- 450 # error
file_length:
warning: 500
error: 1200
large_tuple:
- 3
- 4
force_unwrapping: error
trailing_whitespace:
ignores_empty_lines: true
type_name:
min_length: 4 # only warning
max_length: # warning and error
warning: 45
error: 50
excluded:
- iPhone
- id
- up
- Key
identifier_name:
excluded:
- id
- up
- by
- to
empty_string: error
contains_over_first_not_nil: error
first_where: error
last_where: error
sorted_first_last: error
overridden_super_call:
severity: error
reporter: "xcode"