forked from Harekaze/Harekaze-iOS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.swiftlint.yml
71 lines (69 loc) · 1.22 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
disabled_rules:
- force_try
opt_in_rules:
- empty_count
- missing_docs
- switch_case_on_newline
- redundant_nil_coalescing
- prohibited_super_call
excluded:
- Pods
# rules
colon:
severity: error
comma:
severity: error
vertical_whitespace:
severity: error
trailing_whitespace:
severity: error
ignores_comments: true
prohibited_super_call:
severity: error
redundant_nil_coalescing:
severity: error
force_cast:
severity: error
operator_usage_whitespace:
severity: error
control_statement:
severity: error
switch_case_on_newline:
severity: error
force_try:
severity: warning
line_length:
warning: 160
function_body_length:
warning: 50
type_body_length:
warning: 300
error: 500
file_length:
warning: 500
error: 1200
type_name:
min_length: 4
max_length:
warning: 50
identifier_name:
min_length:
error: 1
custom_rules:
hard_tab:
name: "Hard Tab"
regex: "(^ *)"
match_kinds:
- string
- identifier
- keyword
message: "Use hard tab instead"
severity: error
default_file_header:
name: "Default File Header"
regex: '(^// \w*\.swift$)'
match_kinds:
- comment
message: "Use common file header"
severity: error
reporter: "xcode"