forked from HabitRPG/habitica-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.swiftlint.yml
55 lines (55 loc) · 1.1 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
disabled_rules:
- private_outlet
opt_in_rules:
- 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
excluded: # paths to ignore during linting. Takes precedence over `included`.
- Pods
- HabitRPG/Utilities/HabiticaIcons.swift
line_length: 200
type_body_length:
- 300 # warning
- 400 # 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
identifier_name:
excluded:
- id
- up
empty_string: error
contains_over_first_not_nil: error
first_where: error
last_where: error
sorted_first_last: error
reporter: "xcode"