-
Notifications
You must be signed in to change notification settings - Fork 50
Expand file tree
/
Copy path.swiftlint.yml
More file actions
28 lines (24 loc) · 791 Bytes
/
.swiftlint.yml
File metadata and controls
28 lines (24 loc) · 791 Bytes
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
excluded:
- ListingsUITests
- Pods
disabled_rules:
- trailing_newline
opt_in_rules:
- force_unwrapping
line_length: 150
identifier_name:
excluded:
- id
custom_rules:
injector_import:
name: "Injector Access Violation"
included: ".*.swift"
regex: "(import Swinject)"
message: "Are you sure you need direct access to injection? This is usually needed at the app-delegate level and in factories or providers for property injection."
severity: error
viewmodel_uikit_import:
name: "ViewModel UIKit Access Violation"
included: ".*ViewModel.swift"
regex: "(import UIKit)"
message: "Are you adding styling or decorative logic that may better live in the view & view-controller? ViewModel's are generally UIKit agnostic."
severity: error