-
Notifications
You must be signed in to change notification settings - Fork 6
/
.swiftlint.yml
52 lines (43 loc) · 988 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
50
51
52
disabled_rules:
- trailing_whitespace
- redundant_string_enum_value
opt_in_rules:
- empty_count
- empty_string
included:
- Sources/
line_length:
error: 250
warning: 180
ignores_comments: true
ignores_function_declarations: true
ignores_urls: true
identifier_name:
severity: warning
min_length: 1
max_length: 40
excluded: # excluded via string array
- id
- URL
validates_start_with_lowercase: true
function_body_length:
warning: 300
error: 500
function_parameter_count:
warning: 6
error: 8
type_body_length:
warning: 300
error: 500
# 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
# or they can set both explicitly
file_length:
warning: 500
error: 800
ignore_comment_only_lines: true
cyclomatic_complexity:
warning: 15
error: 25
reporter: "xcode"