forked from ameriod/ForestKit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.swiftlint.yml
executable file
·59 lines (47 loc) · 1018 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
57
58
59
disabled_rules:
- function_body_length
- multiple_closures_with_trailing_closure
- nesting
- trailing_comma
# Statement position means else and catch blocks.
# This rule makes little sense when using single-line do and if blocks.
- statement_position
# This is broken and too eager
- syntactic_sugar
# Using a custom rule
- todo
opt_in_rules:
- implicit_return
file_length:
ignore_comment_only_lines: true
cyclomatic_complexity:
ignores_case_statements: true
warning: 4
error: 9
large_tuple:
error: 3
warning: 3
line_length: 200
trailing_whitespace:
ignores_empty_lines: true
type_name:
allowed_symbols: "_"
identifier_name:
max_length:
warning: 200
allowed_symbols: "_"
excluded:
- id
- x
- y
- en
- es
- no
# Custom rules
custom_rules:
already_true:
regex: "== true"
message: "Don't compare to true, just use the bool value."
already_bool:
regex: "== false"
message: "Don't compare to false, just use !value."