-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.swiftlint.yml
99 lines (73 loc) · 1.53 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
88
89
90
91
92
93
94
95
96
97
98
99
disabled_rules:
- type_body_length
- identifier_name
excluded:
- Pods
- Vendor
indentation: tabs
line_length:
warning: 160
error: 1000
trailing_whitespace:
severity: warning
opening_brace: warning
colon:
severity: warning
comma: warning
operator_usage_whitespace: warning
operator_whitespace: warning
vertical_parameter_alignment: warning
type_name: warning
opt_in_rules:
- operator_usage_whitespace
- private_outlet
- weak_delegate
- private_action
- trailing_closure
- attributes
- modifier_order
- fallthrough
- implicit_return
type_name:
min_length: 3
max_length:
warning: 40
error: 50
excluded: iPhone
reporter: "xcode"
control_statement: warning
statement_position:
severity: warning
implicit_return:
severity: warning
modifier_order:
preferredModifierOrder: [acl, override]
attributes:
always_on_line_above:
- "@NSManaged"
- "@discardableResult"
- "@available"
- "@NSCopying"
- "@UIApplicationMain"
- "@objc"
switch_case_alignment:
severity: warning
empty_enum_arguments: warning
fallthrough: warning
force_cast: warning
force_try: warning
unused_optional_binding:
severity: warning
closure_parameter_position: warning
multiple_closures_with_trailing_closure: warning
# Always leave a space after //
custom_rules:
comments_space:
name: "Space After Comment"
message: "There should be a space after //"
regex: (^ *\/\/\w+)
severity: warning
mark: warning
todo:
severity: warning
weak_delegate: warning