forked from Say-Their-Name/say-their-names-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.swiftlint.yml
44 lines (38 loc) · 854 Bytes
/
.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
disabled_rules:
- trailing_whitespace
- force_cast
- cyclomatic_complexity
- function_body_length
- nesting
- statement_position
- identifier_name
- opening_brace
- type_name
- comma
- unused_optional_binding
- closure_parameter_position
- trailing_comma
- duplicate_enum_cases
- todo
opt_in_rules:
- force_unwrapping
- discouraged_object_literal
line_length: 150
type_body_length:
- 300 # warning
- 400 # error
file_length:
warning: 500
error: 600
excluded:
- Carthage
- Pods
- Vendors
- Frameworks
- Fastlane
custom_rules:
swiftgen_assets:
name: "SwiftGen Image Assets"
regex: '(UIImage)(\.init)?\(named: ?"?.+"?(, ?in:.+?, ?compatibleWith:.+?)?\)|#imageLiteral\(resourceName: ?".+"\)'
message: "Use STNImage.<asset> instead"
severity: error