-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.swiftlint.yml
62 lines (51 loc) · 1.19 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
# 1. SwiftLint Rules: https://realm.github.io/SwiftLint/rule-directory.html
# 2. Validate this file's YML format: https://yamlchecker.com/
# paths to include during linting
included:
- TMSDKDemoIntegration
# paths to ignore during linting (takes precedence over `included`)
excluded:
- release
# reporter output format
reporter: "xcode"
# rule identifiers to exclude from running
disabled_rules:
- file_length
- line_length
- type_body_length
- function_parameter_count
- redundant_string_enum_value
- nesting
- multiple_closures_with_trailing_closure
- unused_closure_parameter
- comment_spacing
- todo
- inclusive_language
- force_try
- force_cast
# adjust rule settings
type_name:
min_length: 2
max_length: 50
allowed_symbols: ["_"]
function_body_length:
warning: 300
cyclomatic_complexity:
warning: 15
error: 20
ignores_case_statements: true
vertical_whitespace:
max_empty_lines: 3
trailing_whitespace:
ignores_empty_lines: true
ignores_comments: true
identifier_name:
min_length: 2
max_length:
warning: 90
error: 1000
excluded: # excluded via string array
- id
- URL
allowed_symbols: ["_"]
validates_start_with_lowercase: warning