-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.swiftlint.yml
34 lines (28 loc) · 1001 Bytes
/
.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
included:
- Plugins
- Sources
- Tests
child_config: .swiftlint-rules.yml
empty_count:
only_after_dot: true
file_header:
required_pattern: |
\/\/
\/\/ {2}All Contributions by Match Group
\/\/
\/\/ {2}Copyright © \d{4}(-\d{4})? Tinder \(Match Group, LLC\)
\/\/
\/\/ {2}Licensed under the Match Group Modified 3-Clause BSD License.
\/\/ {2}See https://github.com/Tinder/Layout/blob/main/LICENSE for license information.
\/\/
private_over_fileprivate:
validate_extensions: true
trailing_whitespace:
ignores_comments: false
custom_rules:
given_when_then:
name: GIVEN / WHEN / THEN
message: |
"GIVEN / WHEN / THEN" comments must be uppercase, without punctuation and both preceded and followed by an empty line.
regex: |
((?<=\n) +\/\/ (Given|given|When|when|Then|then)(?= *\n))|((?<=\n) +[^ ]\/\/ (GIVEN|WHEN|THEN))|((?<=\n) +\/\/ +(GIVEN|WHEN|THEN))|((?<=[^\n]\n) +\/\/ (GIVEN|WHEN|THEN))|((?<=\n) +\/\/ (GIVEN|WHEN|THEN)(?!\n\n))