forked from boostcampwm-2021/iOS08-WithBuddy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.swiftlint.yml
58 lines (47 loc) Β· 1.12 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
disabled_rules:
- trailing_whitespace
- type_body_length
- line_length
- opening_brace
excluded:
- WithBuddy/Application/AppDelegate.swift
- WithBuddy/Application/SceneDelegate.swift
- WithBuddyWidget/
opt_in_rules: # disableλκ² μ€ enable νκ³ μΆμ κ²
- force_unwrapping
- empty_count
- empty_string
- first_where
- last_where
- toggle_bool
function_body_length: # default κ°
- 40 # warning
- 50 # error
file_length: #default
warning: 600
error: 700
ignore_comment_only_lines: true
force_cast: error # μμμ μΌλ‘ μ§μ
force_try:
severity: error # λͺ
μμ μΌλ‘ μ§μ
force_unwrapping: error #κ°μ μΈλν μλ¬
identifier_name: #default
min_length:
warning: 3
error: 2
max_length:
warning: 40
error: 60
excluded: #μ μΈνκ³ μΆμ λ³μ μ΄λ¦λ€
type_name: #default
min_length:
warning: 3
error: 0
max_length:
warning: 40
error: 1000
custom_rules:
get_set_smell:
regex: 'func (get|set).*'
message: "Delete get or set from function name."
severity: error # μ€μ μν΄μ£Όλ©΄ warning