-
Notifications
You must be signed in to change notification settings - Fork 1
/
.swiftlint.yml
49 lines (45 loc) · 1.11 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
excluded: # paths to ignore during linting. Takes precedence over `included`.
- Pods
- R.generated.swift
disabled_rules:
- force_cast
- type_name
- force_try
- function_body_length
- nesting
- variable_name
- control_statement
- line_length
- trailing_whitespace
- statement_position
- type_body_length
- todo
- valid_docs
- missing_docs
- file_length
- function_parameter_count
- cyclomatic_complexity
- unused_closure_parameter
- for_where
- unused_optional_binding
- redundant_void_return
- void_return
- vertical_parameter_alignment
- unused_enumerated
- redundant_discardable_let
- empty_parentheses_with_trailing_closure
opt_in_rules: # some rules are only opt-in
- force_https
- empty_count
- conditional_binding_cascade
- explicit_failure_calls
- explicit_init
- redundant_nil_coalescing
- syntactic_sugar
line_length: 120
custom_rules:
explicit_failure_calls:
name: “Avoid asserting ‘false’”
regex: ‘((assert|precondition)\(false)’
message: “Use assertionFailure() or preconditionFailure() instead.”
severity: warning