Repository navigation
Expand file tree
/
Copy path.swiftlint.yml
More file actions
89 lines (72 loc) · 1.56 KB
/
Copy path.swiftlint.yml
File metadata and controls
89 lines (72 loc) · 1.56 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
---
included:
- MicStatusAI
excluded:
- build
- DerivedData
- MicStatusAI/Generated
analyzer_rules:
- unused_declaration
- unused_import
opt_in_rules:
- all
disabled_rules:
- anonymous_argument_in_multiline_closure
- conditional_returns_on_newline
- contrasted_opening_brace
- discouraged_default_parameter
- explicit_acl
- explicit_enum_raw_value
- explicit_top_level_acl
- explicit_type_interface
- file_types_order
- missing_docs
- multiline_arguments
- multiline_arguments_brackets
- multiline_call_arguments
- multiline_function_chains
- multiline_parameters_brackets
- no_magic_numbers
- prefer_nimble
- required_deinit
- sorted_enum_cases
- switch_case_on_newline
- type_contents_order
- vertical_whitespace_between_cases
strict: true
reporter: xcode
closure_body_length:
warning: 100
error: 150
function_body_length:
warning: 60
error: 100
identifier_name:
excluded:
- id
large_tuple: 3
number_separator:
minimum_length: 5
redundant_self:
keep_in_initializers: true
only_in_closures: false
redundant_type_annotation:
consider_default_literal_types_redundant: true
trailing_comma:
mandatory_comma: true
type_body_length:
warning: 400
excluded_types: []
unneeded_override:
affect_initializers: true
line_length:
warning: 120
error: 160
ignores_comments: true
ignores_urls: true
custom_rules:
nonisolated_unsafe:
name: Unsafe Nonisolated State
message: Use actor isolation or a concurrency-safe resource owner.
regex: 'nonisolated\(unsafe\)'
severity: error