-
Notifications
You must be signed in to change notification settings - Fork 11
/
.swiftlint.yml
48 lines (37 loc) · 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
disabled_rules: # rule identifiers turned on by default to exclude from running
- identifier_name
- function_parameter_count
- notification_center_detachment
- compiler_protocol_init
opt_in_rules:
- conditional_returns_on_newline
included: # case-sensitive paths to include during linting. `--path` is ignored if present
- Sources
- Tests
excluded: # case-sensitive paths to ignore during linting. Takes precedence over `included`
- README.md
- docs
reporter: "xcode" # reporter type (xcode, json, csv, checkstyle, codeclimate, junit, html, emoji, sonarqube, markdown, github-actions-logging, summary)
file_length:
warning: 800
error: 1000
line_length:
ignores_comments: true
ignores_interpolated_strings: true
type_body_length:
warning: 600
error: 800
type_name:
max_length:
warning: 60
allowed_symbols: ["_"]
function_body_length:
warning: 100
error: 300
large_tuple:
warning: 4
error: 6
cyclomatic_complexity:
ignores_case_statements: true
warning: 20
error: 30