-
Notifications
You must be signed in to change notification settings - Fork 0
/
.swiftlint.yml
57 lines (56 loc) · 1.18 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
excluded:
- .build
- .swiftpm
- "*/CodeGen/*.generated.swift"
- "*/*/CodeGen/*.generated.swift"
- "*/*/*/CodeGen/*.generated.swift"
- "**/Package.swift"
- "Tools"
opt_in_rules: # some rules are only opt-in
- class_delegate_protocol
- closure_end_indentation
- closure_spacing
- collection_alignment
- colon
- contains_over_first_not_nil
- empty_string
- empty_xctest_method
- first_where
- last_where
- literal_expression_end_indentation
- lower_acl_than_parent
- modifier_order
- multiline_parameters
- no_extension_access_modifier
- nslocalizedstring_key
- operator_usage_whitespace
- overridden_super_call
- override_in_extension
- pattern_matching_keywords
- redundant_nil_coalescing
- sorted_first_last
- sorted_imports
- unused_import
- unused_declaration
- vertical_whitespace
disabled_rules:
- todo
- large_tuple
line_length: 150
nesting:
type_level:
warning: 10
type_name:
max_length: # warning and error
warning: 50
error: 90
type_body_length:
warning: 320
file_length:
warning: 560
identifier_name:
allowed_symbols: "_"
min_length: 1
max_length: 50
cyclomatic_complexity:
ignores_case_statements: true