generated from CypherPoet/swift-package-template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.swiftlint.yml
94 lines (72 loc) · 1.45 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
opt_in_rules:
- empty_count
- contains_over_first_not_nil
- fatal_error_message
- first_where
- number_separator
- operator_usage_whitespace
- toggle_bool
- empty_string
- fallthrough
- convenience_type
- legacy_random
- multiline_function_chains
- multiline_parameters
- pattern_matching_keywords
- private_outlet
- private_action
- redundant_type_annotation
- sorted_first_last
- strict_fileprivate
- syntactic_sugar
- modifier_order
- yoda_condition
disabled_rules:
- multiple_closures_with_trailing_closure
- trailing_comma
- type_name
# paths to include during linting. `--path` is ignored if present.
included:
- Sources
- Tests
# paths to ignore during linting. Takes precedence over `included`.
excluded:
reporter: "xcode"
####
# Individual Rule Configuration (See: https://realm.github.io/SwiftLint/rule-directory.html)
####
vertical_whitespace:
max_empty_lines: 3
function_parameter_count:
warning: 5
error: 7
function_body_length:
warning: 50
error: 100
line_length:
ignores_function_declarations: true
ignores_comments: true
warning: 130
error: 200
type_body_length:
warning: 300
error: 400
file_length:
warning: 500
error: 700
large_tuple:
warning: 4
error: 6
identifier_name:
excluded:
- id
- up
validates_start_with_lowercase: false
max_length: 50
nesting:
type_level:
warning: 4
number_separator:
minimum_length: 5
generic_type_name:
max_length: 30