forked from MastodonKit/MastodonKit
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.swiftlint.yml
72 lines (67 loc) · 1.54 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
opt_in_rules:
- anyobject_protocol
- array_init
- block_based_kvo
- closure_end_indentation
- closure_spacing
- contains_over_first_not_nil
- convenience_type
- discouraged_object_literal
- empty_count
- empty_string
- empty_xctest_method
- explicit_init
- extension_access_modifier
- fatal_error_message
- file_header
- file_length
- first_where
- force_cast
- force_try
- force_unwrapping
- implicit_return
- implicitly_unwrapped_optional
- joined_default_parameter
- lower_acl_than_parent
- modifier_order
- multiline_function_chains
- multiline_parameters
- no_fallthrough_only
- operator_usage_whitespace
- overridden_super_call
- prefixed_toplevel_constant
- private_action
- private_outlet
- prohibited_super_call
- redundant_nil_coalescing
- single_test_class
- sorted_first_last
- trailing_closure
- unavailable_function
- unneeded_parentheses_in_closure_argument
- vertical_parameter_alignment_on_call
- xctfail_message
- yoda_condition
identifier_name:
min_length:
error: 3
excluded:
- id
line_length: 120
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\.
\/\/