-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.swiftlint.yml
55 lines (55 loc) · 1.49 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
opt_in_rules:
- empty_count
- empty_xctest_method
- fatal_error_message
- first_where
- last_where
- multiple_closures_with_trailing_closure
disabled_rules:
- nesting
- line_length
- type_name
- function_body_length
- type_body_length
- file_length
- force_cast
- force_try
- identifier_name
- function_parameter_count
- first_where
- implicit_getter
- trailing_whitespace
- opening_brace
- trailing_comma
- large_tuple
cyclomatic_complexity:
ignores_case_statements: true
generic_type_name:
max_length:
warning: 1000
excluded:
- Pods
- Carthage
- Resources/R.generated.swift
- Sourcery/Generated
custom_rules:
descriptive_failure_logs:
included: ".*.swift"
excluded: ".*Test.?\\.swift"
regex: '\.(?:warning|error|debug|verbose|info)\(error\.localizedDescription\)'
name: "descriptive_failure_logs"
message: "Sometimes localizedDescription is not enough, add a descriptive message and pass in the error"
severity: warning
accessibility_isReduceMotionEnabled:
included: ".*.swift"
excluded: ".*Test.?\\.swift"
regex: 'animated: true'
name: "accessibility_isReduceMotionEnabled"
message: "Please take in consideration the is Reduce Motion Enabled property"
severity: warning
weak_router:
included: ".*.swift"
regex: '(?<!(weak|unowned) )var router:'
name: 'Weak Router'
message: "Routers should be weak or unowned to avoid reference cycles."
severity: warning