-
Notifications
You must be signed in to change notification settings - Fork 291
Expand file tree
/
Copy path.swiftlint.yml
More file actions
135 lines (135 loc) · 2.88 KB
/
.swiftlint.yml
File metadata and controls
135 lines (135 loc) · 2.88 KB
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
#
# .swiftlint.yml
# mas
#
# SwiftLint 0.63.2
#
---
excluded:
- .build/
- .idea/
- .swiftpm/
- .vscode/
opt_in_rules:
- all
analyzer_rules:
- all
disabled_rules:
- closure_body_length
- contrasted_opening_brace
- cyclomatic_complexity
- explicit_acl
- explicit_enum_raw_value
- explicit_self
- explicit_top_level_acl
- explicit_type_interface
- file_header
- function_body_length
- large_tuple
- multiple_closures_with_trailing_closure
- no_extension_access_modifier
- no_grouping_extension
- no_magic_numbers
- prefixed_toplevel_constant
- strict_fileprivate
- type_body_length
attributes:
always_on_line_above: ['@Flag', '@MainActor', '@OptionGroup', '@TaskLocal']
deployment_target:
macOS_deployment_target: 13
macOSApplicationExtension_deployment_target: 13
iOS_deployment_target: 99
iOSApplicationExtension_deployment_target: 99
tvOS_deployment_target: 99
tvOSApplicationExtension_deployment_target: 99
watchOS_deployment_target: 99
watchOSApplicationExtension_deployment_target: 99
file_length:
ignore_comment_only_lines: true
warning: 500
file_name:
excluded: [Group.swift, InstalledApp+Spotlight.swift, Process.swift, User.swift]
file_types_order:
order:
- main_type
- supporting_type
- extension
- preview_provider
- library_content_provider
function_parameter_count:
warning: 6
indentation_width:
indentation_width: 2
include_multiline_strings: false
line_length:
ignores_multiline_strings: true
ignores_regex_literals: true
modifier_order:
preferred_modifier_order:
- acl
- setterACL
- override
- isolation
- dynamic
- mutators
- lazy
- final
- required
- convenience
- typeMethods
- owned
multiline_arguments:
first_argument_location: next_line
non_optional_string_data_conversion:
include_variables: true
number_separator:
minimum_length: 6
opening_brace:
ignore_multiline_statement_conditions: true
operator_usage_whitespace:
skip_aligned_constants: false
prefer_key_path:
restrict_to_standard_functions: false
private_over_fileprivate:
validate_extensions: true
redundant_self:
only_in_closures: false
redundant_type_annotation:
consider_default_literal_types_redundant: true
trailing_comma:
mandatory_comma: true
trailing_whitespace:
ignores_comments: false
type_contents_order:
order:
- case
- associated_type
- type_alias
- subtype
- type_property
- instance_property
- ib_inspectable
- ib_outlet
- initializer
- deinitializer
- type_method
- view_life_cycle_method
- ib_action
- other_method
- subscript
unneeded_override:
affect_initializers: true
unused_import:
require_explicit_imports: true
allowed_transitive_imports:
- module: Darwin
allowed_transitive_imports:
- _DarwinFoundation1
- _DarwinFoundation2
- _DarwinFoundation3
- module: Swift
allowed_transitive_imports:
- _Concurrency
- _StringProcessing
vertical_whitespace_between_cases:
separation: never