|
| 1 | +# add the below section to `.cargo/config.toml` |
| 2 | + |
| 3 | +[target.'cfg(all())'] |
| 4 | +rustflags = [ |
| 5 | + # BEGIN - Embark standard lints v6 for Rust 1.55+ |
| 6 | + # do not change or add/remove here, but one can add exceptions after this section |
| 7 | + # for more info see: <https://github.com/EmbarkStudios/rust-ecosystem/issues/59> |
| 8 | + "-Dunsafe_code", |
| 9 | + "-Wclippy::all", |
| 10 | + "-Wclippy::await_holding_lock", |
| 11 | + "-Wclippy::char_lit_as_u8", |
| 12 | + "-Wclippy::checked_conversions", |
| 13 | + "-Wclippy::dbg_macro", |
| 14 | + "-Wclippy::debug_assert_with_mut_call", |
| 15 | + "-Wclippy::doc_markdown", |
| 16 | + "-Wclippy::empty_enum", |
| 17 | + "-Wclippy::enum_glob_use", |
| 18 | + "-Wclippy::exit", |
| 19 | + "-Wclippy::expl_impl_clone_on_copy", |
| 20 | + "-Wclippy::explicit_deref_methods", |
| 21 | + "-Wclippy::explicit_into_iter_loop", |
| 22 | + "-Wclippy::fallible_impl_from", |
| 23 | + "-Wclippy::filter_map_next", |
| 24 | + "-Wclippy::flat_map_option", |
| 25 | + "-Wclippy::float_cmp_const", |
| 26 | + "-Wclippy::fn_params_excessive_bools", |
| 27 | + "-Wclippy::from_iter_instead_of_collect", |
| 28 | + "-Wclippy::if_let_mutex", |
| 29 | + "-Wclippy::implicit_clone", |
| 30 | + "-Wclippy::imprecise_flops", |
| 31 | + "-Wclippy::inefficient_to_string", |
| 32 | + "-Wclippy::invalid_upcast_comparisons", |
| 33 | + "-Wclippy::large_digit_groups", |
| 34 | + "-Wclippy::large_stack_arrays", |
| 35 | + "-Wclippy::large_types_passed_by_value", |
| 36 | + "-Wclippy::let_unit_value", |
| 37 | + "-Wclippy::linkedlist", |
| 38 | + "-Wclippy::lossy_float_literal", |
| 39 | + "-Wclippy::macro_use_imports", |
| 40 | + "-Wclippy::manual_ok_or", |
| 41 | + "-Wclippy::map_err_ignore", |
| 42 | + "-Wclippy::map_flatten", |
| 43 | + "-Wclippy::map_unwrap_or", |
| 44 | + "-Wclippy::match_on_vec_items", |
| 45 | + "-Wclippy::match_same_arms", |
| 46 | + "-Wclippy::match_wild_err_arm", |
| 47 | + "-Wclippy::match_wildcard_for_single_variants", |
| 48 | + "-Wclippy::mem_forget", |
| 49 | + "-Wclippy::mismatched_target_os", |
| 50 | + "-Wclippy::missing_enforced_import_renames", |
| 51 | + "-Wclippy::mut_mut", |
| 52 | + "-Wclippy::mutex_integer", |
| 53 | + "-Wclippy::needless_borrow", |
| 54 | + "-Wclippy::needless_continue", |
| 55 | + "-Wclippy::needless_for_each", |
| 56 | + "-Wclippy::option_option", |
| 57 | + "-Wclippy::path_buf_push_overwrite", |
| 58 | + "-Wclippy::ptr_as_ptr", |
| 59 | + "-Wclippy::rc_mutex", |
| 60 | + "-Wclippy::ref_option_ref", |
| 61 | + "-Wclippy::rest_pat_in_fully_bound_structs", |
| 62 | + "-Wclippy::same_functions_in_if_condition", |
| 63 | + "-Wclippy::semicolon_if_nothing_returned", |
| 64 | + "-Wclippy::single_match_else", |
| 65 | + "-Wclippy::string_add_assign", |
| 66 | + "-Wclippy::string_add", |
| 67 | + "-Wclippy::string_lit_as_bytes", |
| 68 | + "-Wclippy::string_to_string", |
| 69 | + "-Wclippy::todo", |
| 70 | + "-Wclippy::trait_duplication_in_bounds", |
| 71 | + "-Wclippy::unimplemented", |
| 72 | + "-Wclippy::unnested_or_patterns", |
| 73 | + "-Wclippy::unused_self", |
| 74 | + "-Wclippy::useless_transmute", |
| 75 | + "-Wclippy::verbose_file_reads", |
| 76 | + "-Wclippy::zero_sized_map_values", |
| 77 | + "-Wfuture_incompatible", |
| 78 | + "-Wnonstandard_style", |
| 79 | + "-Wrust_2018_idioms", |
| 80 | + # END - Embark standard lints v6 for Rust 1.55+ |
| 81 | +] |
0 commit comments