Skip to content

Commit

Permalink
lints: Add extra clippy lints used at Traverse
Browse files Browse the repository at this point in the history
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/
  • Loading branch information
MarijnS95 committed Mar 10, 2021
1 parent c8e9ce2 commit 2c0bc07
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions lints.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -30,25 +31,31 @@
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,
rust_2018_idioms
)]
// END - Embark standard lints v0.3
// crate-specific exceptions:
#![allow()]
#![allow()]

0 comments on commit 2c0bc07

Please sign in to comment.