-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.swiftlint.yml
70 lines (63 loc) · 1.34 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
included:
- Sources
disabled_rules:
- cyclomatic_complexity
- file_length
- function_body_length
- identifier_name
- large_tuple
- line_length
- nesting
- todo
opt_in_rules:
- closure_end_indentation
- closure_spacing
- collection_alignment
- convenience_type
- discouraged_object_literal
- empty_count
- fatal_error_message
- file_header
- force_unwrapping
- implicitly_unwrapped_optional
- literal_expression_end_indentation
- lower_acl_than_parent
- modifier_order
- multiline_arguments
- multiline_arguments_brackets
- multiline_literal_brackets
- multiline_parameters
- multiline_parameters_brackets
- operator_usage_whitespace
- period_spacing
- unavailable_function
- vertical_parameter_alignment_on_call
- vertical_whitespace_closing_braces
- yoda_condition
custom_rules:
prefer_spaces_over_tabs:
name: Prefer Spaces Over Tabs
message: Indentation should use 4 spaces per indentation level instead of tabs
regex: ^\t
file_header:
required_pattern: |
//
// SWIFTLINT_CURRENT_FILENAME
// createicns
//
modifier_order:
preferred_modifier_order:
- acl
- setterACL
- override
- mutators
- lazy
- final
- required
- convenience
- typeMethods
- owned
trailing_comma:
mandatory_comma: true
type_name:
allowed_symbols: ["_"]