-
Notifications
You must be signed in to change notification settings - Fork 6
/
.swiftlint.yml
76 lines (75 loc) · 1.77 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
disabled_rules: # rule identifiers to exclude from running
- trailing_comma
- operator_whitespace
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_string
- discouraged_optional_collection
- closure_end_indentation
- file_header
excluded: # paths to ignore during linting. Takes precedence over `included`.
- Package.swift
- .build/
- vendor/
- Carthage/
- DerivedData/
- Sources/eRpApp/Generated/*
nesting:
type_level: 3
line_length: 120
file_length:
warning: 500
error: 1200
type_name:
min_length: 3
max_length:
warning: 40
error: 50
allowed_symbols: ["_Previews"]
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
file_header:
required_pattern: |
\/\/
\/\/ Copyright \(c\) \d{4} gematik GmbH
\/\/