-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.swiftlint.yml
More file actions
69 lines (69 loc) · 1.65 KB
/
.swiftlint.yml
File metadata and controls
69 lines (69 loc) · 1.65 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
disabled_rules:
- line_length
- identifier_name
- type_body_length
- function_body_length
- file_length
- type_name
- force_cast
- cyclomatic_complexity
- inclusive_language
- for_where
- optional_data_string_conversion
opt_in_rules:
- closure_end_indentation
- closure_spacing
- collection_alignment
- contains_over_filter_count
- contains_over_first_not_nil
- contains_over_range_nil_comparison
- empty_collection_literal
- empty_count
- empty_string
- first_where
- identical_operands
- last_where
- operator_usage_whitespace
- overridden_super_call
- prefer_zero_over_explicit_init
- prohibited_super_call
- redundant_type_annotation
- toggle_bool
- trailing_closure
- unneeded_parentheses_in_closure_argument
analyzer_rules:
- unused_import
included:
- Euria/Sources
- EuriaCore
- EuriaCoreUI
- EuriaFeatures
- Project.swift
- Tuist/Package.swift
- Tuist/ProjectDescriptionHelpers
custom_rules:
private_state:
included:
- ".*\\.swift"
regex: "(?<!@Previewable\\s)@State\\s+var"
message: "State should be private"
private_state_object:
included:
- ".*\\.swift"
regex: "(?<!@Previewable\\s)@StateObject\\s+var"
message: "StateObject should be private"
private_modal_state:
included:
- ".*\\.swift"
regex: "(?<!@Previewable\\s)@ModalState\\s+var"
message: "ModalState should be private"
private_environment:
included:
- ".*\\.swift"
regex: "@Environment\\([^)]*\\)\\s+var"
message: "Environment should be private"
private_environment_object:
included:
- ".*\\.swift"
regex: "@EnvironmentObject\\s+var"
message: "EnvironmentObject should be private"