-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.swiftlint.yml
53 lines (39 loc) · 979 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: # rule identifiers to exclude from running
- force_cast
- notification_center_detachment
- trailing_whitespace
- identifier_name
- unused_closure_parameter
opt_in_rules:
- empty_count
#Customized Rules
line_length:
warning: 250
error: 300
ignores_function_declarations: true
ignores_comments: true
ignores_urls: true
file_length:
warning: 1000
error: 1500
ignore_comment_only_lines: true
type_body_length:
warning: 300
error: 500
function_body_length:
warning: 300
error: 500
function_parameter_count:
warning: 10
error: 11
cyclomatic_complexity:
warning: 15
error: 25
vertical_whitespace:
warning: 3
max_empty_lines: 2
excluded: # paths to ignore during linting. Takes precedence over `included`.
- Pods
- Carthage
- SwiftLint/Common/3rdPartyLib
reporter: "xcode" # reporter type (xcode, json, csv, checkstyle, junit, html, emoji, sonarqube, markdown)