-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlints.toml
79 lines (72 loc) · 2.07 KB
/
lints.toml
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
# add this to your top level Cargo.toml file in your workspace and set
# [lints]
# workspace = true
# in the crate Cargo.toml files you want to apply the lints to.
# If you don't use a workspace, you can just add this to your crate's Cargo.toml file and omit the `workspace` attribute.
[workspace.lints.rust]
unsafe_code = "forbid"
# Groups
future-incompatible = "deny"
deprecated-safe = "deny"
keyword-idents = "deny"
let-underscore = "deny"
nonstandard-style = "deny"
refining-impl-trait = "deny"
rust-2018-idioms = "deny"
# Single
unused-must-use = "deny"
unused_imports = "deny"
unfulfilled_lint_expectations = "deny"
async_fn_in_trait = "allow"
[workspace.lints.clippy]
all = { level = "deny", priority = -1 }
implicit_clone = "deny"
iter_filter_is_ok = "deny"
iter_filter_is_some = "deny"
map_unwrap_or = "deny"
match_same_arms = "deny"
match_wild_err_arm = "deny"
match_wildcard_for_single_variants = "deny"
semicolon_if_nothing_returned = "deny"
unused_async = "deny"
ref_option = "deny"
rc_mutex = "deny"
checked_conversions = "deny"
enum_glob_use = "deny"
explicit_into_iter_loop = "deny"
filter_map_next = "deny"
flat_map_option = "deny"
fn_params_excessive_bools = "deny"
large_stack_arrays = "deny"
large_types_passed_by_value = "deny"
linkedlist = "deny"
unwrap_used = "deny"
needless_pass_by_value = "deny"
clone_on_ref_ptr = "deny"
expect_used = "deny"
print_stdout = "deny"
str_to_string = "deny"
fallible_impl_from = "deny"
manual_ok_or = "deny"
match_on_vec_items = "deny"
mut_mut = "deny"
mutex_integer = "deny"
needless_continue = "deny"
needless_collect = "deny"
needless_for_each = "deny"
option_as_ref_cloned = "deny"
option_option = "deny"
rest_pat_in_fully_bound_structs = "deny"
same_functions_in_if_condition = "deny"
single_match_else = "deny"
string_lit_as_bytes = "deny"
trait_duplication_in_bounds = "deny"
unnested_or_patterns = "deny"
verbose_file_reads = "deny"
zero_sized_map_values = "deny"
collection_is_never_read = "deny"
rc_buffer = "deny"
suspicious_operation_groupings = "deny"
allow_attributes = "deny"
allow_attributes_without_reason = "deny"
large_futures = "warn"