From 17f22dc37494e588fdf7ec6bda645feae3b7f67a Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Sat, 2 Nov 2024 05:58:01 +0000 Subject: [PATCH] Adjusted lint exceptions for tests --- crates/rubedo-macros/tests/lib.rs | 2 ++ crates/rubedo/src/lib.rs | 2 ++ crates/rubedo/tests/chrono.rs | 2 ++ crates/rubedo/tests/crypto.rs | 2 ++ crates/rubedo/tests/serde.rs | 2 ++ 5 files changed, 10 insertions(+) diff --git a/crates/rubedo-macros/tests/lib.rs b/crates/rubedo-macros/tests/lib.rs index 8450bbd..7adf0cc 100644 --- a/crates/rubedo-macros/tests/lib.rs +++ b/crates/rubedo-macros/tests/lib.rs @@ -3,6 +3,7 @@ // Lints specifically disabled for integration tests #![cfg_attr(test, allow( non_snake_case, + clippy::arithmetic_side_effects, clippy::cast_lossless, clippy::cast_precision_loss, clippy::cognitive_complexity, @@ -19,6 +20,7 @@ clippy::panic, clippy::print_stdout, clippy::tests_outside_test_module, + clippy::too_many_lines, clippy::unwrap_in_result, clippy::unwrap_used, reason = "Not useful in integration tests" diff --git a/crates/rubedo/src/lib.rs b/crates/rubedo/src/lib.rs index 1ef3f6d..36d8974 100644 --- a/crates/rubedo/src/lib.rs +++ b/crates/rubedo/src/lib.rs @@ -16,6 +16,7 @@ // Lints specifically disabled for unit tests #![cfg_attr(test, allow( non_snake_case, + clippy::arithmetic_side_effects, clippy::cast_lossless, clippy::cast_precision_loss, clippy::cognitive_complexity, @@ -31,6 +32,7 @@ clippy::must_use_candidate, clippy::panic, clippy::print_stdout, + clippy::too_many_lines, clippy::unwrap_in_result, clippy::unwrap_used, reason = "Not useful in unit tests" diff --git a/crates/rubedo/tests/chrono.rs b/crates/rubedo/tests/chrono.rs index dbcb7bd..a2f7396 100644 --- a/crates/rubedo/tests/chrono.rs +++ b/crates/rubedo/tests/chrono.rs @@ -4,6 +4,7 @@ // Lints specifically disabled for integration tests #![cfg_attr(test, allow( non_snake_case, + clippy::arithmetic_side_effects, clippy::cast_lossless, clippy::cast_precision_loss, clippy::cognitive_complexity, @@ -20,6 +21,7 @@ clippy::panic, clippy::print_stdout, clippy::tests_outside_test_module, + clippy::too_many_lines, clippy::unwrap_in_result, clippy::unwrap_used, reason = "Not useful in integration tests" diff --git a/crates/rubedo/tests/crypto.rs b/crates/rubedo/tests/crypto.rs index 3413c7e..ca3ced7 100644 --- a/crates/rubedo/tests/crypto.rs +++ b/crates/rubedo/tests/crypto.rs @@ -4,6 +4,7 @@ // Lints specifically disabled for integration tests #![cfg_attr(test, allow( non_snake_case, + clippy::arithmetic_side_effects, clippy::cast_lossless, clippy::cast_precision_loss, clippy::cognitive_complexity, @@ -20,6 +21,7 @@ clippy::panic, clippy::print_stdout, clippy::tests_outside_test_module, + clippy::too_many_lines, clippy::unwrap_in_result, clippy::unwrap_used, reason = "Not useful in integration tests" diff --git a/crates/rubedo/tests/serde.rs b/crates/rubedo/tests/serde.rs index f21b60e..9bd3ece 100644 --- a/crates/rubedo/tests/serde.rs +++ b/crates/rubedo/tests/serde.rs @@ -4,6 +4,7 @@ // Lints specifically disabled for integration tests #![cfg_attr(test, allow( non_snake_case, + clippy::arithmetic_side_effects, clippy::cast_lossless, clippy::cast_precision_loss, clippy::cognitive_complexity, @@ -20,6 +21,7 @@ clippy::panic, clippy::print_stdout, clippy::tests_outside_test_module, + clippy::too_many_lines, clippy::unwrap_in_result, clippy::unwrap_used, reason = "Not useful in integration tests"