Skip to content

Commit

Permalink
Adjusted lint exceptions for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
danwilliams committed Nov 2, 2024
1 parent 4a97e42 commit 17f22dc
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/rubedo-macros/tests/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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"
Expand Down
2 changes: 2 additions & 0 deletions crates/rubedo/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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"
Expand Down
2 changes: 2 additions & 0 deletions crates/rubedo/tests/chrono.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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"
Expand Down
2 changes: 2 additions & 0 deletions crates/rubedo/tests/crypto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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"
Expand Down
2 changes: 2 additions & 0 deletions crates/rubedo/tests/serde.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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"
Expand Down

0 comments on commit 17f22dc

Please sign in to comment.