-
Notifications
You must be signed in to change notification settings - Fork 1
/
.swiftlint.yml
56 lines (48 loc) · 993 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
disabled_rules: # rule identifiers to exclude from running
#- colon
- conditional_binding_cascade
- comma
- control_statement
- force_cast
- legacy_constant
- legacy_constructor
- line_length
- nesting
- todo
- trailing_whitespace
- type_name
- variable_name
- cyclomatic_complexity
- unused_closure_parameter
- redundant_string_enum_value
- operator_whitespace
- for_where
- notification_center_detachment
opt_in_rules: # some rules are only opt-in
#- empty_count
#- missing_docs
# Find all the available rules by running:
# swiftlint rules
excluded: # paths to ignore during linting. Takes precedence over `included`.
- Carthage
- Pods
- <YOURPROJECT>/Vendor
- <YOURPROJECT>Tests
- <YOURPROJECT>UITests
# These properties are marked as error by default.
force_try: warning
file_length:
warning: 2000
error: 3000
function_body_length:
warning: 150
error: 200
type_body_length:
warning: 2000
error: 3000
function_parameter_count:
warning: 10
error: 15
large_tuple:
warning: 4
error: 5