forked from tari-project/triptych
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lints.toml
55 lines (47 loc) · 1.32 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
deny = [
# Prevent spelling mistakes in lints
'unknown_lints',
# Use the default groups:
# correctness, suspicious, style, complexity, perf
'clippy::all',
# Require documentation
'missing_docs',
# Common mistakes
'unused_variables',
'unused_imports',
'dead_code',
'unused_extern_crates',
'unused_must_use',
'unreachable_patterns',
'let_underscore_drop',
'clippy::cloned_instead_of_copied',
'clippy::create_dir',
'clippy::dbg_macro',
'clippy::else_if_without_else',
'clippy::enum_glob_use',
'clippy::inline_always',
'clippy::match_on_vec_items',
'clippy::match_wild_err_arm',
# Style preferences
'clippy::explicit_into_iter_loop',
'clippy::explicit_iter_loop',
'clippy::if_not_else',
'clippy::match_bool',
'clippy::needless_pass_by_value',
'clippy::range_plus_one',
'clippy::struct_excessive_bools',
'clippy::too_many_lines',
'clippy::trivially_copy_pass_by_ref',
# Casting mistakes
'clippy::cast_lossless',
'clippy::cast_possible_truncation',
'clippy::cast_possible_wrap',
'clippy::cast_precision-loss',
'clippy::cast_sign_loss',
# Mathematical mistakes
'clippy::arithmetic_side_effects',
]
warn = [
'clippy::uninlined_format_args',
'clippy::too_many_arguments',
]