From: Jason Ish Date: Fri, 20 Aug 2021 17:44:17 +0000 (-0600) Subject: rust(lint): suppress clippy lints that we should fix X-Git-Tag: suricata-7.0.0-beta1~1512 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F6304%2Fhead;p=thirdparty%2Fsuricata.git rust(lint): suppress clippy lints that we should fix Suppress all remaining clippy lints that we trip. This can be fixed on a per-lint basis. --- diff --git a/rust/src/lib.rs b/rust/src/lib.rs index e563d8c9cd..f27f76b94d 100644 --- a/rust/src/lib.rs +++ b/rust/src/lib.rs @@ -23,6 +23,50 @@ #![allow(clippy::needless_return)] #![allow(clippy::redundant_field_names)] #![allow(clippy::len_zero)] +#![allow(clippy::too_many_arguments)] +#![allow(clippy::assign_op_pattern)] +#![allow(clippy::manual_range_contains)] +#![allow(clippy::vec_init_then_push)] +#![allow(clippy::assertions_on_constants)] +#![allow(clippy::let_and_return)] +#![allow(clippy::needless_bool)] +#![allow(clippy::char_lit_as_u8)] + +// To be fixed, but remove the noise for now. +#![allow(clippy::collapsible_if)] +#![allow(clippy::collapsible_else_if)] +#![allow(clippy::unnecessary_cast)] +#![allow(clippy::redundant_static_lifetimes)] +#![allow(clippy::bool_comparison)] +#![allow(clippy::for_loops_over_fallibles)] +#![allow(clippy::needless_lifetimes)] +#![allow(clippy::single_match)] +#![allow(clippy::cmp_null)] +#![allow(clippy::upper_case_acronyms)] +#![allow(clippy::ptr_arg)] +#![allow(clippy::new_without_default)] +#![allow(clippy::needless_lifetimes)] +#![allow(clippy::match_ref_pats)] +#![allow(clippy::module_inception)] +#![allow(clippy::needless_range_loop)] +#![allow(clippy::enum_variant_names)] +#![allow(clippy::if_same_then_else)] +#![allow(clippy::match_single_binding)] +#![allow(clippy::match_like_matches_macro)] +#![allow(clippy::extra_unused_lifetimes)] +#![allow(clippy::mixed_case_hex_literals)] +#![allow(clippy::type_complexity)] +#![allow(clippy::nonminimal_bool)] +#![allow(clippy::never_loop)] +#![allow(clippy::large_enum_variant)] +#![allow(clippy::for_loops_over_fallibles)] +#![allow(clippy::explicit_counter_loop)] +#![allow(clippy::branches_sharing_code)] +#![allow(clippy::while_let_loop)] +#![allow(clippy::redundant_pattern_matching)] +#![allow(clippy::inherent_to_string)] +#![allow(clippy::field_reassign_with_default)] +#![allow(clippy::collapsible_match)] #[macro_use] extern crate nom;