generated from CypherPoet/swift-package-template
-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.swiftlint.yml
72 lines (60 loc) · 1.39 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
opt_in_rules:
- force_unwrapping
- empty_count
- contains_over_first_not_nil
- fatal_error_message
- first_where
- number_separator
- operator_usage_whitespace
- trailing_closure
- toggle_bool
- convenience_type
- empty_string
- fallthrough
- function_default_parameter_at_end
- legacy_random
- multiline_function_chains
- multiline_parameters
- pattern_matching_keywords
- private_outlet
- private_action
- redundant_type_annotation
- sorted_first_last
- strict_fileprivate
- syntactic_sugar
- unneeded_parentheses_in_closure_argument
- modifier_order
- yoda_condition
disabled_rules: # rule identifiers to exclude from running
- vertical_whitespace
- trailing_whitespace
included: # paths to include during linting. `--path` is ignored if present.
- Sources
excluded: # paths to ignore during linting. Takes precedence over `included`.
- Pods
- Carthage
function_parameter_count:
warning: 4
error: 5
line_length:
ignores_function_declarations: true
ignores_comments: true
type_body_length:
warning: 300
error: 400
file_length:
warning: 500
error: 600
large_tuple: # warn user when using 3 values in tuple, give error if there are 4
warning: 3
error: 4
identifier_name:
excluded:
- id
type_name:
min_length: 4 # only warning
max_length: # warning and error
warning: 30
error: 35
excluded: Ids
reporter: "xcode"