-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
.swiftlint.yml
33 lines (30 loc) · 910 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
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
- inclusive_language
excluded:
- Extern
opt_in_rules:
# Prefer checking `isEmpty` over `count > 0`
- empty_count
file_length:
warning: 1000
error: 2000
line_length: 250
identifier_name:
min_length:
warning: 2