-
Notifications
You must be signed in to change notification settings - Fork 0
/
.swiftlint.yml
45 lines (34 loc) · 1.04 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
disabled_rules: # rule identifiers to exclude from running
- identifier_name
- function_body_length
- nesting
- todo
- type_name
opt_in_rules: # some rules are only opt-in
- indentation_width
included: # paths to include during linting. `--path` is ignored if present.
excluded: # paths to ignore during linting. Takes precedence over `included`.
# configurable rules can be customized from this configuration file
# binary rules can set their severity level
force_cast: warning # implicitly. Give warning only for force casting
force_try:
severity: warning # explicitly. Give warning only for force try
indentation_width:
indentation_width: 2
type_body_length:
- 300 # warning
- 400 # error
line_length:
warning: 120
ignores_comments: true
ignores_interpolated_strings: true
ignores_urls: true
cyclomatic_complexity:
ignores_case_statements: true
# or they can set both explicitly
file_length:
warning: 500
error: 800
large_tuple: # warn user when using 3 values in tuple, give error if there are 4
- 3
- 4