-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path.swiftlint.yml
More file actions
71 lines (59 loc) · 1.31 KB
/
Copy path.swiftlint.yml
File metadata and controls
71 lines (59 loc) · 1.31 KB
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
disabled_rules:
- nesting
- trailing_newline
- trailing_whitespace
- todo
- closure_parameter_position
- unused_closure_parameter
- mark
- weak_delegate
- empty_parameters
# SwiftFormat's --commas always adds trailing commas in multi-line collections;
# require them here so both tools agree.
trailing_comma:
mandatory_comma: true
included:
- Sources
- Tests
excluded:
- Configurations
line_length: 200
# SwiftFormat's wrapMultilineStatementBraces puts { on its own line for multiline
# function signatures, type-inheritance lists, and statement conditions (if/guard/while);
# allow all of those so the two tools don't fight.
opening_brace:
ignore_multiline_function_signatures: true
ignore_multiline_type_headers: true
ignore_multiline_statement_conditions: true
type_name:
min_length: 3
max_length:
warning: 60
error: 80
excluded:
- id
- €
file_length:
warning: 350
error: 500
ignore_comment_only_lines: true
identifier_name:
min_length: 1
max_length:
warning: 60
error: 80
allowed_symbols: ["_"]
validates_start_with_lowercase: false
type_body_length:
warning: 200
error: 400
function_parameter_count:
warning: 4
error: 5
function_body_length:
warning: 65
error: 80
ignores_comments: true
cyclomatic_complexity:
warning: 10
error: 15