forked from supabitapp/supacode
-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy path.swiftlint.yml
More file actions
44 lines (35 loc) · 936 Bytes
/
.swiftlint.yml
File metadata and controls
44 lines (35 loc) · 936 Bytes
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
strict: true
included:
- supacode
- supacodeTests
excluded:
- ThirdParty/ghostty
disabled_rules:
- file_length
- closure_parameter_position
- type_body_length
opt_in_rules:
- accessibility_label_for_image
- accessibility_trait_for_button
- async_without_await
opening_brace:
ignore_multiline_function_signatures: true
ignore_multiline_statement_conditions: true
ignore_multiline_type_headers: true
trailing_comma:
mandatory_comma: true
cyclomatic_complexity:
warning: 15
error: 20
function_body_length:
warning: 100
error: 150
redundant_discardable_let:
ignore_swiftui_view_bodies: true
custom_rules:
store_state_mutation_in_views:
name: "Store State Mutation In Views"
regex: "\\bstore\\.[A-Za-z0-9_]+\\s*(?:\\+=|-=|\\*=|/=|=(?!=))"
message: "Do not mutate store state directly in views. Send actions instead."
severity: error
included: "supacode/.*/Views/.*\\.swift"