-
Notifications
You must be signed in to change notification settings - Fork 0
/
.swiftlint.yml
87 lines (87 loc) · 1.63 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
disabled_rules:
- trailing_whitespace
- private_over_fileprivate
- identifier_name
opt_in_rules:
- empty_count
- empty_string
- closure_end_indentation
- closure_spacing
- contains_over_first_not_nil
- explicit_init
- fatal_error_message
- first_where
- joined_default_parameter
- literal_expression_end_indentation
- overridden_super_call
- prohibited_super_call
- sorted_first_last
- unneeded_parentheses_in_closure_argument
- vertical_parameter_alignment_on_call
- yoda_condition
- nslocalizedstring_key
- unused_setter_value
excluded:
- Carthage
- Pods
- SwiftLint/Common/3rdPartyLib
- Deps
- Scripts
line_length:
warning: 200
error: 250
ignores_function_declarations: true
ignores_comments: true
ignores_urls: true
type_name:
min_length: 4
max_length:
warning: 40
error: 50
excluded:
- pkgwant
- pkgeflag
- pkgstatus
- pkgpriority
identifier_name:
min_length:
error: 3
max_length:
warning: 40
error: 50
excluded:
- c
- i
- j
- k
- p
- q
- x
- y
- z
- ok
- to
- id
large_tuple:
warning: 4
error: 5
function_body_length:
warning: 300
error: 500
function_parameter_count:
warning: 6
error: 8
type_body_length:
warning: 750
error: 1000
file_length:
warning: 1200
error: 1500
ignore_comment_only_lines: true
cyclomatic_complexity:
warning: 50
error: 60
reporter: "xcode"
force_cast: warning # implicitly
force_try:
severity: warning # explicitly