forked from exyte/Grid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.swiftlint.yml
49 lines (45 loc) · 978 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
disabled_rules: # rule identifiers to exclude from running
- control_statement
- trailing_whitespace
- nesting
- type_name
opt_in_rules: # some rules are only opt-in
- empty_count
# Find all the available rules by running:
# swiftlint rules
whitelist_rules:
excluded: # paths to ignore during linting. Takes precedence over `included`.
- Carthage
- Pods
- init.swift
force_cast: warning
force_try:
severity: warning # explicitly
identifier_name:
min_length: # only min_length
error: 2 # only error
excluded: # excluded via string array
- id
- URL
- vc
- vm
line_length:
- 230
- 500
type_body_length:
- 300 # warning
- 400 # error
file_length:
- 500 # warning
- 800 # error
large_tuple:
- 3 # warning
- 4 # error
function_parameter_count:
- 6 # warning
- 8 # error
cyclomatic_complexity:
warning: 13
function_body_length:
warning: 60
reporter: "xcode" # reporter type (xcode, json, csv, checkstyle)