-
Notifications
You must be signed in to change notification settings - Fork 41
/
.swiftlint_tests.yml
67 lines (65 loc) · 1.72 KB
/
.swiftlint_tests.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
included:
- ../../support/tests
excluded:
- Tests/SwiftLintFrameworkTests/Resources
disabled_rules:
- force_cast
- force_try
- line_length
- file_length
- identifier_name
- trailing_comma
- unused_optional_binding
- overridden_super_call
- vertical_parameter_alignment_on_call
- cyclomatic_complexity
- type_body_length
- file_header
opt_in_rules:
- explicit_init
- closure_spacing
- redundant_nil_coalescing
- private_outlet
- nimble_operator
- attributes
- operator_usage_whitespace
- closure_end_indentation
- first_where
- sorted_imports
- object_literal
- prohibited_super_call
- fatal_error_message
- unneeded_parentheses_in_closure_argument
- extension_access_modifier
- pattern_matching_keywords
- array_init
- literal_expression_end_indentation
- number_separator
file_header:
required_pattern: |
\/\/
\/\/ .*?\.swift
\/\/ tealium-swift
\/\/
\/\/ Created by .*? on \d{1,2}\/\d{1,2}\/\d{2}\.
\/\/ Copyright © \d{4} Tealium, Inc\. All rights reserved\.
\/\/
identifier_name:
excluded:
- id
severity: warning
number_separator:
minimum_length: 5
custom_rules:
rule_id:
included: Source/SwiftLintFramework/Rules/\w+\.swift
name: Rule ID
message: Rule IDs must be all lowercase, snake case and not end with `rule`
regex: identifier:\s*("\w+_rule"|"\S*[^a-z_]\S*")
severity: error
any_observable_generics:
included: ./tealium
name: ToAnyObservable Generics
message: ToAnyObservable must always specify Generics type to avoid compile issues
regex: \@ToAnyObservable\s*\(
severity: error