forked from gematik/ref-CardReaderProvider-ApiKit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.swiftlint.yml
55 lines (55 loc) · 1.38 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
opt_in_rules:
- attributes
- empty_count
- force_unwrapping
- unneeded_parentheses_in_closure_argument
- unavailable_function
- trailing_closure
- strict_fileprivate
- sorted_imports
- sorted_first_last
- single_test_class
- required_enum_case
- redundant_type_annotation
- redundant_nil_coalescing
- prohibited_super_call
- override_in_extension
- overridden_super_call
- operator_usage_whitespace
- no_extension_access_modifier
- multiline_function_chains
- multiline_arguments
- modifier_order
- missing_docs
- lower_acl_than_parent
- literal_expression_end_indentation
- first_where
- file_name
- fatal_error_message
- explicit_init
- empty_xctest_method
- empty_string
- discouraged_optional_collection
- closure_end_indentation
- file_header
excluded: # paths to ignore during linting. Takes precedence over `included`.
- Package.swift
- .build/
- vendor/
- Carthage/
line_length: 120
custom_rules:
nimble_fail_with_description:
included: ".*Test\\.swift"
name: "Fail with description"
regex: "(Nimble.fail\\(\\))"
message: "Failures need a description"
severity: warning
must_not_contain_author:
included:
- ".*Test\\.swift"
- ".*Sources\\.swift"
name: "must not contain author"
regex: "(\/\/[[:space:]]*Created by)"
message: "Source must not contain author"
severity: warning