forked from hashgraph/hedera-sdk-swift
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.swiftlint.yml
71 lines (66 loc) · 1.77 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
included:
- Examples/
- Sources/Hedera/
- Tests/
excluded:
- .build/
- Sources/Hedera/Status.swift
disabled_rules:
# TODO: re-enable once the project is deemed complete
- todo
# swift-format disagrees, swift-format has its own style lints.
- opening_brace
- trailing_comma
# coverered by swift-format.
- line_length
# not a very useful lint honestly.
- cyclomatic_complexity
# it's basically exclusively used for `unreachable`
- force_try
# This triggers a lot because of functions that simply cannot be smaller.
- function_body_length
# see above.
- closure_body_length
# And this triggers a lot because of the above two.
- type_body_length
# likewise here
- file_length
# Identifier names should make sense,
# and renaming stuff isn't always the right decision.
- identifier_name
opt_in_rules:
# deprecated & will be removed
# - anyobject_protocol
- anonymous_argument_in_multiline_closure
- array_init
- attributes
- balanced_xctest_lifecycle
- closure_body_length
- closure_end_indentation
- closure_spacing
- collection_alignment
# - conditional_returns_on_newline
- contains_over_filter_count
- contains_over_filter_is_empty
- contains_over_first_not_nil
- contains_over_range_nil_comparison
- convenience_type
- discarded_notification_center_observer
- discouraged_assert
- discouraged_none_name
- discouraged_object_literal
- empty_collection_literal
- empty_count
- empty_string
- empty_xctest_method
- enum_case_associated_values_count
- expiring_todo
- explicit_acl
- explicit_top_level_acl
# this conflicts with `explicit_acl` by making the ACL redundant
# - extension_access_modifier
- fallthrough
- fatal_error_message
- missing_docs
analyzer_rules:
- capture_variable