-
Notifications
You must be signed in to change notification settings - Fork 0
/
.swiftlint.yml
39 lines (31 loc) · 887 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
disabled_rules: # rule identifiers to exclude from running
- colon # exaclty one space after the : >>> let abc: Void\n
- todo # TODO can be written in the code but should be linked to a ticket on JIRA.
- nesting # func nesting max 1 level
- trailing_whitespace
included: # paths to include during linting. `--path` is ignored if present.
- ChineseWordCard
excluded: # paths to ignore during linting. Takes precedence over `included`.
- Pods
- ChineseWordCard/SettingData.swift
- ChineseWordCard/ChineseWord.swift
file_length:
- 1000 #warning
- 1500 #error
function_body_length:
- 200 #warning
- 400 #error
line_length:
- 500 #warning
- 750 #error
type_body_length:
- 400 #warning
- 500 #error
cyclomatic_complexity:
- 25 #warning
- 50 #error
opt_in_rules:
- force_unwrapping
- control_statement
- private_outlet
- vertical_whitespace