-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.swiftlint.yml
46 lines (39 loc) · 1.31 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
disabled_rules:
- force_try
- duplicate_imports
- function_body_length
opt_in_rules:
- file_header
- empty_count
- inclusive_language
included:
- Shared
- Gutenberg
- Gutenberg (iOS)
- Tests
type_name:
allowed_symbols: ["_"]
type_body_length:
warning: 250
error: 400
file_length:
warning: 500
error: 1000
file_header:
required_pattern: |
\/\/
\/\/ .*?\.swift
\/\/ Created by .*? on \d{1,2}\/\d{1,2}\/\d{2}\.
\/\/ This file is part of Gutenberg\.
\/\/
\/\/ Gutenberg 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\>\.
\/\/
\/\/ Gutenberg comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law\. See the CNPL for details\.
\/\/
custom_rules:
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