From 2c0bc07fb9e1934936bc76369018d99291aaa982 Mon Sep 17 00:00:00 2001 From: Marijn Suijten Date: Mon, 8 Mar 2021 15:43:16 +0100 Subject: [PATCH] lints: Add extra clippy lints used at Traverse These are the extra lints that we have enabled over at [Traverse]. They were mostly picked at random a while back by looking at default-allowed lints and is likely incomplete. In addition we have these pending, hoping they become useful one day after fixing all violations: clippy::cognitive_complexity clippy::use_self [Traverse]: https://github.com/Traverse-Research/ --- lints.rs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/lints.rs b/lints.rs index eda95e5..5c66d6a 100644 --- a/lints.rs +++ b/lints.rs @@ -13,6 +13,7 @@ clippy::exit, clippy::explicit_into_iter_loop, clippy::filter_map_next, + clippy::float_cmp_const, clippy::fn_params_excessive_bools, clippy::if_let_mutex, clippy::imprecise_flops, @@ -30,20 +31,26 @@ clippy::match_wildcard_for_single_variants, clippy::mem_forget, clippy::mismatched_target_os, + clippy::mutex_integer, clippy::needless_borrow, clippy::needless_continue, + clippy::needless_pass_by_value, clippy::option_option, + clippy::print_stderr, + clippy::print_stdout, clippy::pub_enum_variant_names, clippy::ref_option_ref, clippy::rest_pat_in_fully_bound_structs, - clippy::string_add_assign, + clippy::string_add_assign, clippy::string_add, clippy::string_to_string, clippy::suboptimal_flops, clippy::todo, + clippy::trivially_copy_pass_by_ref, clippy::unimplemented, clippy::unnested_or_patterns, clippy::unused_self, + clippy::useless_transmute, clippy::verbose_file_reads, future_incompatible, nonstandard_style, @@ -51,4 +58,4 @@ )] // END - Embark standard lints v0.3 // crate-specific exceptions: -#![allow()] \ No newline at end of file +#![allow()]