-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy path.swiftlint.yml
More file actions
76 lines (64 loc) · 1.43 KB
/
Copy path.swiftlint.yml
File metadata and controls
76 lines (64 loc) · 1.43 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
72
73
74
75
76
included:
- Sources
- Package.swift
excluded:
- .build
- Submodules
opt_in_rules:
- array_init
- attributes
- closure_end_indentation
- closure_spacing
- empty_count
- explicit_init
- extension_access_modifier
- fatal_error_message
- first_where
- let_var_whitespace
- literal_expression_end_indentation
- nimble_operator
- operator_usage_whitespace
- overridden_super_call
- pattern_matching_keywords
- private_outlet
- prohibited_super_call
- redundant_nil_coalescing
- unneeded_parentheses_in_closure_argument
- vertical_parameter_alignment_on_call
disabled_rules:
- attributes
- multiple_closures_with_trailing_closure
- trailing_comma
- vertical_parameter_alignment_on_call
- void_return
custom_rules:
disable_print:
name: "print usage"
regex: "((\\bprint)|(Swift\\.print))\\s*\\("
message: "User app.logger or request.logger instead of print"
severity: warning
# Default Rule Configuration
type_name:
min_length: 2
identifier_name:
min_length: 2
allowed_symbols: "_"
excluded:
- x
- f
- i
file_length:
warning: 500
error: 1000
function_body_length: 50
line_length: 200
cyclomatic_complexity:
ignores_case_statements: true
large_tuple:
warning: 6
error: 10
nesting:
type_level:
warning: 2
function_level:
warning: 10