-
Notifications
You must be signed in to change notification settings - Fork 0
/
.swiftlint.yml
58 lines (51 loc) · 1.7 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
disabled_rules:
- force_try
- duplicate_imports
- function_body_length
opt_in_rules:
- file_header
- empty_count
- inclusive_language
included:
- Shared
- Tests
type_name:
allowed_symbols: ["_"]
type_body_length:
warning: 250
error: 400
file_length:
warning: 500
error: 1000
file_header:
required_pattern: |
\/\/
\/\/ .*?\.swift
\/\/ Indexing Your Heart
\/\/
\/\/ Created by .*? on \d{1,2}\/\d{1,2}\/\d{2}\.
\/\/
\/\/ This file is part of Indexing Your Heart\.
\/\/
\/\/ Indexing Your Heart is non-violent software: you can use, redistribute, and\/or modify it under the terms of the
\/\/ CNPLv7\+ as found in the LICENSE file in the source code root directory or at
\/\/ \<https:\/\/git\.pixie\.town\/thufie\/npl-builder\>\.
\/\/
\/\/ Indexing Your Heart comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law\. See the CNPL for
\/\/ details\.
custom_rules:
no_capstone_name:
name: "Require Public-facing Name"
regex: "(Head Over Heels)"
capture_group: 0
match_kinds:
- comment
- identifier
- string
message: "Refer to the project by its public-facing name, Indexing Your Heart."
severity: warning
unneeded_filter:
name: "Possible Unneeded Filter"
regex: ".filter(\\s?)\\{(.+)\\}\\s+for (\\w+) in (\\w+) \\{\\s*(.+)\\s*\\}"
message: "Filter might be unneeded; try using the for-where clause to iterate over a filter."
severity: warning