forked from JohnCoates/Aerial
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.swiftlint.yml
34 lines (31 loc) · 926 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
disabled_rules:
# Allow force-casting (e.g. `x as! UICollectionViewCell`).
# We may want to re-enable and address this rule.
- force_cast
# Allow `TODO` and `FIXME` comments.
- todo
# Allow the use of `let _ = <optional>`
- unused_optional_binding
# Allow the use of parantheses when calling methods with trailing completion closures
- empty_parentheses_with_trailing_closure
# We use enum "namespaces" which leads to nesting violations
- nesting
# Re-evalature to shorten functions up
- function_body_length
# Allow declaring operators without extra whitespace, like so: `func ==(_ lhs, ...)`
- operator_whitespace
- redundant_string_enum_value
excluded:
- Extern
opt_in_rules:
# Prefer checking `isEmpty` over `count > 0`
- empty_count
file_length:
warning: 600
error: 1000
line_length: 150
trailing_comma:
mandatory_comma: true
identifier_name:
min_length:
warning: 2