-
Notifications
You must be signed in to change notification settings - Fork 0
/
.swiftlint.yml
49 lines (44 loc) · 941 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
# List of rules: https://github.com/realm/SwiftLint/blob/master/Rules.md
# Paths to include during linting.
included:
- Weather
excluded:
- Weather/Core/Network/Reachability.swift
- Weather/Resource/R.generated.swift
# Disable some of them:
disabled_rules:
- nesting
# Enable rules
opt_in_rules:
- empty_count
- explicit_init
- operator_usage_whitespace
- overridden_super_call
- prohibited_super_call
- redundant_nil_coalescing
- sorted_first_last
- contains_over_first_not_nil
- first_where
- implicit_return
- literal_expression_end_indentation
- private_action
- private_outlet
# Customize:
trailing_whitespace:
ignores_empty_lines: true
line_length: 180
type_body_length:
- 600 # warning
- 600 # error
file_length:
warning: 1000
error: 1000
type_name:
min_length: 0
max_length:
warning: 60
error: 60
identifier_name:
excluded: # excluded via string array
- id
- to