Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
#![deny(clippy::print_stdout, clippy::print_stderr, clippy::absolute_paths)]
#![cfg_attr(
test,
allow(
clippy::unwrap_used,
clippy::expect_used,
clippy::panic,
clippy::as_conversions,
clippy::cast_sign_loss,
clippy::cast_possible_wrap,
clippy::needless_collect,
clippy::absolute_paths,
clippy::if_then_some_else_none,
clippy::doc_markdown,
clippy::semicolon_outside_block,
reason = "restriction/pedantic lints relaxed in test cfg — unwrap/expect/panic/casts and minor stylistic lints are idiomatic in tests"
)
)]

use anyhow::{Context, Result};
use clap::{Parser, Subcommand};
Expand Down
20 changes: 20 additions & 0 deletions tests/integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,26 @@
//! Set `DETAIL_API_KEY` in the environment to enable them; when absent the
//! tests are silently skipped.

#![cfg_attr(
test,
allow(
clippy::unwrap_used,
clippy::expect_used,
clippy::panic,
clippy::as_conversions,
clippy::cast_sign_loss,
clippy::cast_possible_wrap,
clippy::needless_collect,
clippy::absolute_paths,
clippy::if_then_some_else_none,
clippy::doc_markdown,
clippy::semicolon_outside_block,
clippy::redundant_closure_for_method_calls,
clippy::tests_outside_test_module,
reason = "restriction/pedantic lints relaxed in test cfg — unwrap/expect/panic/casts and minor stylistic lints are idiomatic in tests"
)
)]

use std::path::PathBuf;
use std::process::Command;

Expand Down
Loading