-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.swiftlint.yml
More file actions
42 lines (37 loc) · 1.03 KB
/
.swiftlint.yml
File metadata and controls
42 lines (37 loc) · 1.03 KB
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
# 검사에서 제외할 디렉토리 지정
excluded:
- Project.swift
- .build
- .git
- fastlane
- Pods
- Carthage
- Tuist/.build/checkouts
# 추가로 활성화할 규칙들
opt_in_rules:
- empty_count # count == 0 대신 isEmpty 사용 권장
- empty_string # "" 대신 String() 사용 권장
- fatal_error_message # fatalError 메시지 필수
- first_where # filter().first 대신 first(where:) 사용 권장
- force_unwrapping # 강제 언래핑(!) 사용 제한
- implicit_return # 암시적 return 사용 제한
- modifier_order # 수정자 순서 강제
- operator_usage_whitespace # 연산자 주변 공백
- sorted_imports # import 알파벳 순 정렬
# 비활성화할 일반적인 규칙
disabled_rules:
- trailing_whitespace
- todo
- trailing_newline
- multiple_closures_with_trailing_closure
- leading_whitespace
# 라인 길이 설정
line_length:
warning: 120
error: 300
# 타입 본문 길이 설정
type_body_length:
warning: 400
error: 500
analyzer_rules:
- unused_import # 사용하지 않는 import