-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
.swiftlint.yml
76 lines (69 loc) · 1.57 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
73
74
75
76
included:
- Sources
- Tests
disabled_rules:
- cyclomatic_complexity
- file_length
- function_body_length
- identifier_name
- large_tuple
- line_length
- todo
- type_body_length
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
- indentation_width
- literal_expression_end_indentation
- lower_acl_than_parent
- modifier_order
- multiline_arguments
- multiline_arguments_brackets
- multiline_literal_brackets
- multiline_parameters
- multiline_parameters_brackets
- period_spacing
- unavailable_function
- vertical_parameter_alignment_on_call
- vertical_whitespace_closing_braces
- yoda_condition
custom_rules:
objc_dynamic:
name: "@objc dynamic"
message: "`dynamic` modifier should immediately follow `@objc` attribute"
regex: '@objc\b(\(\w*\))?+\s*(\S+|\v+\S*)\s*\bdynamic'
match_kinds: attribute.builtin
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
// ColorWellKit
//
modifier_order:
preferred_modifier_order:
- acl
- setterACL
- override
- mutators
- lazy
- final
- required
- convenience
- typeMethods
- owned
trailing_comma:
mandatory_comma: true
type_name:
allowed_symbols: ["_"]