forked from MastodonKit/MastodonKit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.swiftlint.yml
47 lines (42 loc) · 950 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
35
36
37
38
39
40
41
42
43
44
45
46
47
opt_in_rules:
- closure_end_indentation
- closure_spacing
- empty_count
- explicit_init
- fatal_error_message
- file_length
- first_where
- force_cast
- force_try
- force_unwrapping
- implicitly_unwrapped_optional
- operator_usage_whitespace
- overridden_super_call
- private_outlet
- prohibited_super_call
- redundant_nil_coalescing
- multiline_parameters
- file_header
identifier_name:
min_length:
error: 3
excluded:
- id
line_length: 160
type_name:
min_length: 3
max_length:
warning: 40
error: 50
function_body_length:
warning: 50
error: 100
file_header:
required_pattern: |
\/\/
\/\/ .*?\.swift
\/\/ MastodonKit
\/\/
\/\/ Created by .*? on \d{1,2}\/\d{1,2}\/\d{2}\.
\/\/ Copyright © \d{4} MastodonKit\. All rights reserved\.
\/\/