diff --git a/cli/clippy.toml b/cli/clippy.toml index fcd626b314..a699b1c5df 100644 --- a/cli/clippy.toml +++ b/cli/clippy.toml @@ -3,23 +3,23 @@ disallowed-methods = [ { path = "std::process::exit", reason = "use deno_runtime::exit instead" }, { path = "clap::Arg::env", reason = "ensure environment variables are resolved after loading the .env file instead" }, { path = "tokio::signal::ctrl_c", reason = "use deno_signals crate instead" }, - { path = "tokio::signal::unix::signal", reason = "use deno_signals crate instead" }, - { path = "tokio::signal::windows::ctrl_break", reason = "use deno_signals crate instead" }, - { path = "tokio::signal::windows::ctrl_c", reason = "use deno_signals crate instead" }, - { path = "tokio::signal::windows::ctrl_close", reason = "use deno_signals crate instead" }, - { path = "tokio::signal::windows::ctrl_logoff", reason = "use deno_signals crate instead" }, - { path = "tokio::signal::windows::ctrl_shutdown", reason = "use deno_signals crate instead" }, + { path = "tokio::signal::unix::signal", reason = "use deno_signals crate instead", allow-invalid = true }, + { path = "tokio::signal::windows::ctrl_break", reason = "use deno_signals crate instead", allow-invalid = true }, + { path = "tokio::signal::windows::ctrl_c", reason = "use deno_signals crate instead", allow-invalid = true }, + { path = "tokio::signal::windows::ctrl_close", reason = "use deno_signals crate instead", allow-invalid = true }, + { path = "tokio::signal::windows::ctrl_logoff", reason = "use deno_signals crate instead", allow-invalid = true }, + { path = "tokio::signal::windows::ctrl_shutdown", reason = "use deno_signals crate instead", allow-invalid = true }, ] disallowed-types = [ { path = "reqwest::Client", reason = "use crate::http_util::HttpClient instead" }, { path = "sys_traits::impls::RealSys", reason = "use crate::sys::CliSys instead" }, - { path = "tokio::signal::unix::Signal", reason = "use deno_signals crate instead" }, - { path = "tokio::signal::unix::SignalKind", reason = "use deno_signals crate instead" }, - { path = "tokio::signal::windows::CtrlBreak", reason = "use deno_signals crate instead" }, - { path = "tokio::signal::windows::CtrlC", reason = "use deno_signals crate instead" }, - { path = "tokio::signal::windows::CtrlClose", reason = "use deno_signals crate instead" }, - { path = "tokio::signal::windows::CtrlLogoff", reason = "use deno_signals crate instead" }, - { path = "tokio::signal::windows::CtrlShutdown", reason = "use deno_signals crate instead" }, + { path = "tokio::signal::unix::Signal", reason = "use deno_signals crate instead", allow-invalid = true }, + { path = "tokio::signal::unix::SignalKind", reason = "use deno_signals crate instead", allow-invalid = true }, + { path = "tokio::signal::windows::CtrlBreak", reason = "use deno_signals crate instead", allow-invalid = true }, + { path = "tokio::signal::windows::CtrlC", reason = "use deno_signals crate instead", allow-invalid = true }, + { path = "tokio::signal::windows::CtrlClose", reason = "use deno_signals crate instead", allow-invalid = true }, + { path = "tokio::signal::windows::CtrlLogoff", reason = "use deno_signals crate instead", allow-invalid = true }, + { path = "tokio::signal::windows::CtrlShutdown", reason = "use deno_signals crate instead", allow-invalid = true }, ] ignore-interior-mutability = [ "lsp_types::Uri", diff --git a/cli/lib/clippy.toml b/cli/lib/clippy.toml index 0060289cf2..997ed2352b 100644 --- a/cli/lib/clippy.toml +++ b/cli/lib/clippy.toml @@ -9,16 +9,6 @@ disallowed-methods = [ { path = "std::path::Path::read_link", reason = "File system operations should be done using DenoLibSys" }, { path = "std::path::Path::symlink_metadata", reason = "File system operations should be done using DenoLibSys" }, { path = "std::path::Path::try_exists", reason = "File system operations should be done using DenoLibSys" }, - { path = "std::path::PathBuf::exists", reason = "File system operations should be done using DenoLibSys" }, - { path = "std::path::PathBuf::canonicalize", reason = "File system operations should be done using DenoLibSys" }, - { path = "std::path::PathBuf::is_dir", reason = "File system operations should be done using DenoLibSys" }, - { path = "std::path::PathBuf::is_file", reason = "File system operations should be done using DenoLibSys" }, - { path = "std::path::PathBuf::is_symlink", reason = "File system operations should be done using DenoLibSys" }, - { path = "std::path::PathBuf::metadata", reason = "File system operations should be done using DenoLibSys" }, - { path = "std::path::PathBuf::read_dir", reason = "File system operations should be done using DenoLibSys" }, - { path = "std::path::PathBuf::read_link", reason = "File system operations should be done using DenoLibSys" }, - { path = "std::path::PathBuf::symlink_metadata", reason = "File system operations should be done using DenoLibSys" }, - { path = "std::path::PathBuf::try_exists", reason = "File system operations should be done using DenoLibSys" }, { path = "std::env::set_current_dir", reason = "File system operations should be done using DenoLibSys" }, { path = "std::env::temp_dir", reason = "File system operations should be done using DenoLibSys" }, { path = "std::fs::canonicalize", reason = "File system operations should be done using DenoLibSys" }, diff --git a/ext/fs/clippy.toml b/ext/fs/clippy.toml index 943d28c6df..3fb7f69a2a 100644 --- a/ext/fs/clippy.toml +++ b/ext/fs/clippy.toml @@ -9,16 +9,6 @@ disallowed-methods = [ { path = "std::path::Path::read_link", reason = "File system operations should be done using FileSystem trait" }, { path = "std::path::Path::symlink_metadata", reason = "File system operations should be done using FileSystem trait" }, { path = "std::path::Path::try_exists", reason = "File system operations should be done using FileSystem trait" }, - { path = "std::path::PathBuf::exists", reason = "File system operations should be done using FileSystem trait" }, - { path = "std::path::PathBuf::canonicalize", reason = "File system operations should be done using FileSystem trait" }, - { path = "std::path::PathBuf::is_dir", reason = "File system operations should be done using FileSystem trait" }, - { path = "std::path::PathBuf::is_file", reason = "File system operations should be done using FileSystem trait" }, - { path = "std::path::PathBuf::is_symlink", reason = "File system operations should be done using FileSystem trait" }, - { path = "std::path::PathBuf::metadata", reason = "File system operations should be done using FileSystem trait" }, - { path = "std::path::PathBuf::read_dir", reason = "File system operations should be done using FileSystem trait" }, - { path = "std::path::PathBuf::read_link", reason = "File system operations should be done using FileSystem trait" }, - { path = "std::path::PathBuf::symlink_metadata", reason = "File system operations should be done using FileSystem trait" }, - { path = "std::path::PathBuf::try_exists", reason = "File system operations should be done using FileSystem trait" }, { path = "std::env::set_current_dir", reason = "File system operations should be done using FileSystem trait" }, { path = "std::env::temp_dir", reason = "File system operations should be done using FileSystem trait" }, { path = "std::fs::canonicalize", reason = "File system operations should be done using FileSystem trait" }, diff --git a/ext/node/clippy.toml b/ext/node/clippy.toml index 02fd259d09..49e76c4a5a 100644 --- a/ext/node/clippy.toml +++ b/ext/node/clippy.toml @@ -10,16 +10,6 @@ disallowed-methods = [ { path = "std::path::Path::read_link", reason = "File system operations should be done using FileSystem trait" }, { path = "std::path::Path::symlink_metadata", reason = "File system operations should be done using FileSystem trait" }, { path = "std::path::Path::try_exists", reason = "File system operations should be done using FileSystem trait" }, - { path = "std::path::PathBuf::exists", reason = "File system operations should be done using FileSystem trait" }, - { path = "std::path::PathBuf::canonicalize", reason = "File system operations should be done using FileSystem trait" }, - { path = "std::path::PathBuf::is_dir", reason = "File system operations should be done using FileSystem trait" }, - { path = "std::path::PathBuf::is_file", reason = "File system operations should be done using FileSystem trait" }, - { path = "std::path::PathBuf::is_symlink", reason = "File system operations should be done using FileSystem trait" }, - { path = "std::path::PathBuf::metadata", reason = "File system operations should be done using FileSystem trait" }, - { path = "std::path::PathBuf::read_dir", reason = "File system operations should be done using FileSystem trait" }, - { path = "std::path::PathBuf::read_link", reason = "File system operations should be done using FileSystem trait" }, - { path = "std::path::PathBuf::symlink_metadata", reason = "File system operations should be done using FileSystem trait" }, - { path = "std::path::PathBuf::try_exists", reason = "File system operations should be done using FileSystem trait" }, { path = "std::fs::canonicalize", reason = "File system operations should be done using FileSystem trait" }, { path = "std::fs::copy", reason = "File system operations should be done using FileSystem trait" }, { path = "std::fs::create_dir", reason = "File system operations should be done using FileSystem trait" }, diff --git a/libs/config/clippy.toml b/libs/config/clippy.toml index db939c6f11..6a5bbfb0e7 100644 --- a/libs/config/clippy.toml +++ b/libs/config/clippy.toml @@ -10,16 +10,6 @@ disallowed-methods = [ { path = "std::path::Path::read_link", reason = "File system operations should be done using the sys_traits crate" }, { path = "std::path::Path::symlink_metadata", reason = "File system operations should be done using the sys_traits crate" }, { path = "std::path::Path::try_exists", reason = "File system operations should be done using the sys_traits crate" }, - { path = "std::path::PathBuf::exists", reason = "File system operations should be done using the sys_traits crate" }, - { path = "std::path::PathBuf::canonicalize", reason = "File system operations should be done using the sys_traits crate" }, - { path = "std::path::PathBuf::is_dir", reason = "File system operations should be done using the sys_traits crate" }, - { path = "std::path::PathBuf::is_file", reason = "File system operations should be done using the sys_traits crate" }, - { path = "std::path::PathBuf::is_symlink", reason = "File system operations should be done using the sys_traits crate" }, - { path = "std::path::PathBuf::metadata", reason = "File system operations should be done using the sys_traits crate" }, - { path = "std::path::PathBuf::read_dir", reason = "File system operations should be done using the sys_traits crate" }, - { path = "std::path::PathBuf::read_link", reason = "File system operations should be done using the sys_traits crate" }, - { path = "std::path::PathBuf::symlink_metadata", reason = "File system operations should be done using the sys_traits crate" }, - { path = "std::path::PathBuf::try_exists", reason = "File system operations should be done using the sys_traits crate" }, { path = "std::fs::canonicalize", reason = "File system operations should be done using the sys_traits crate" }, { path = "std::fs::copy", reason = "File system operations should be done using the sys_traits crate" }, { path = "std::fs::create_dir", reason = "File system operations should be done using the sys_traits crate" }, diff --git a/libs/node_resolver/clippy.toml b/libs/node_resolver/clippy.toml index 6b6db88299..0670ba22fa 100644 --- a/libs/node_resolver/clippy.toml +++ b/libs/node_resolver/clippy.toml @@ -9,16 +9,6 @@ disallowed-methods = [ { path = "std::path::Path::read_link", reason = "File system operations should be done using sys_traits" }, { path = "std::path::Path::symlink_metadata", reason = "File system operations should be done using sys_traits" }, { path = "std::path::Path::try_exists", reason = "File system operations should be done using sys_traits" }, - { path = "std::path::PathBuf::exists", reason = "File system operations should be done using sys_traits" }, - { path = "std::path::PathBuf::canonicalize", reason = "File system operations should be done using sys_traits" }, - { path = "std::path::PathBuf::is_dir", reason = "File system operations should be done using sys_traits" }, - { path = "std::path::PathBuf::is_file", reason = "File system operations should be done using sys_traits" }, - { path = "std::path::PathBuf::is_symlink", reason = "File system operations should be done using sys_traits" }, - { path = "std::path::PathBuf::metadata", reason = "File system operations should be done using sys_traits" }, - { path = "std::path::PathBuf::read_dir", reason = "File system operations should be done using sys_traits" }, - { path = "std::path::PathBuf::read_link", reason = "File system operations should be done using sys_traits" }, - { path = "std::path::PathBuf::symlink_metadata", reason = "File system operations should be done using sys_traits" }, - { path = "std::path::PathBuf::try_exists", reason = "File system operations should be done using sys_traits" }, { path = "std::env::set_current_dir", reason = "File system operations should be done using sys_traits" }, { path = "std::env::temp_dir", reason = "File system operations should be done using sys_traits" }, { path = "std::fs::canonicalize", reason = "File system operations should be done using sys_traits" }, diff --git a/libs/npm_cache/clippy.toml b/libs/npm_cache/clippy.toml index 3004eb161b..2475676ef8 100644 --- a/libs/npm_cache/clippy.toml +++ b/libs/npm_cache/clippy.toml @@ -9,16 +9,6 @@ disallowed-methods = [ { path = "std::path::Path::read_link", reason = "File system operations should be done using sys_traits" }, { path = "std::path::Path::symlink_metadata", reason = "File system operations should be done using sys_traits" }, { path = "std::path::Path::try_exists", reason = "File system operations should be done using sys_traits" }, - { path = "std::path::PathBuf::exists", reason = "File system operations should be done using sys_traits" }, - { path = "std::path::PathBuf::canonicalize", reason = "File system operations should be done using sys_traits" }, - { path = "std::path::PathBuf::is_dir", reason = "File system operations should be done using sys_traits" }, - { path = "std::path::PathBuf::is_file", reason = "File system operations should be done using sys_traits" }, - { path = "std::path::PathBuf::is_symlink", reason = "File system operations should be done using sys_traits" }, - { path = "std::path::PathBuf::metadata", reason = "File system operations should be done using sys_traits" }, - { path = "std::path::PathBuf::read_dir", reason = "File system operations should be done using sys_traits" }, - { path = "std::path::PathBuf::read_link", reason = "File system operations should be done using sys_traits" }, - { path = "std::path::PathBuf::symlink_metadata", reason = "File system operations should be done using sys_traits" }, - { path = "std::path::PathBuf::try_exists", reason = "File system operations should be done using sys_traits" }, { path = "std::env::set_current_dir", reason = "File system operations should be done using sys_traits" }, { path = "std::env::temp_dir", reason = "File system operations should be done using sys_traits" }, { path = "std::fs::canonicalize", reason = "File system operations should be done using sys_traits" }, diff --git a/libs/npm_installer/clippy.toml b/libs/npm_installer/clippy.toml index 3004eb161b..2475676ef8 100644 --- a/libs/npm_installer/clippy.toml +++ b/libs/npm_installer/clippy.toml @@ -9,16 +9,6 @@ disallowed-methods = [ { path = "std::path::Path::read_link", reason = "File system operations should be done using sys_traits" }, { path = "std::path::Path::symlink_metadata", reason = "File system operations should be done using sys_traits" }, { path = "std::path::Path::try_exists", reason = "File system operations should be done using sys_traits" }, - { path = "std::path::PathBuf::exists", reason = "File system operations should be done using sys_traits" }, - { path = "std::path::PathBuf::canonicalize", reason = "File system operations should be done using sys_traits" }, - { path = "std::path::PathBuf::is_dir", reason = "File system operations should be done using sys_traits" }, - { path = "std::path::PathBuf::is_file", reason = "File system operations should be done using sys_traits" }, - { path = "std::path::PathBuf::is_symlink", reason = "File system operations should be done using sys_traits" }, - { path = "std::path::PathBuf::metadata", reason = "File system operations should be done using sys_traits" }, - { path = "std::path::PathBuf::read_dir", reason = "File system operations should be done using sys_traits" }, - { path = "std::path::PathBuf::read_link", reason = "File system operations should be done using sys_traits" }, - { path = "std::path::PathBuf::symlink_metadata", reason = "File system operations should be done using sys_traits" }, - { path = "std::path::PathBuf::try_exists", reason = "File system operations should be done using sys_traits" }, { path = "std::env::set_current_dir", reason = "File system operations should be done using sys_traits" }, { path = "std::env::temp_dir", reason = "File system operations should be done using sys_traits" }, { path = "std::fs::canonicalize", reason = "File system operations should be done using sys_traits" }, diff --git a/libs/package_json/clippy.toml b/libs/package_json/clippy.toml index c29159ccd3..f3f8c69acf 100644 --- a/libs/package_json/clippy.toml +++ b/libs/package_json/clippy.toml @@ -10,16 +10,6 @@ disallowed-methods = [ { path = "std::path::Path::read_link", reason = "File system operations should be done using the sys_traits crate" }, { path = "std::path::Path::symlink_metadata", reason = "File system operations should be done using the sys_traits crate" }, { path = "std::path::Path::try_exists", reason = "File system operations should be done using the sys_traits crate" }, - { path = "std::path::PathBuf::exists", reason = "File system operations should be done using the sys_traits crate" }, - { path = "std::path::PathBuf::canonicalize", reason = "File system operations should be done using the sys_traits crate" }, - { path = "std::path::PathBuf::is_dir", reason = "File system operations should be done using the sys_traits crate" }, - { path = "std::path::PathBuf::is_file", reason = "File system operations should be done using the sys_traits crate" }, - { path = "std::path::PathBuf::is_symlink", reason = "File system operations should be done using the sys_traits crate" }, - { path = "std::path::PathBuf::metadata", reason = "File system operations should be done using the sys_traits crate" }, - { path = "std::path::PathBuf::read_dir", reason = "File system operations should be done using the sys_traits crate" }, - { path = "std::path::PathBuf::read_link", reason = "File system operations should be done using the sys_traits crate" }, - { path = "std::path::PathBuf::symlink_metadata", reason = "File system operations should be done using the sys_traits crate" }, - { path = "std::path::PathBuf::try_exists", reason = "File system operations should be done using the sys_traits crate" }, { path = "std::fs::canonicalize", reason = "File system operations should be done using the sys_traits crate" }, { path = "std::fs::copy", reason = "File system operations should be done using the sys_traits crate" }, { path = "std::fs::create_dir", reason = "File system operations should be done using the sys_traits crate" }, diff --git a/libs/resolver/clippy.toml b/libs/resolver/clippy.toml index 6b6db88299..0670ba22fa 100644 --- a/libs/resolver/clippy.toml +++ b/libs/resolver/clippy.toml @@ -9,16 +9,6 @@ disallowed-methods = [ { path = "std::path::Path::read_link", reason = "File system operations should be done using sys_traits" }, { path = "std::path::Path::symlink_metadata", reason = "File system operations should be done using sys_traits" }, { path = "std::path::Path::try_exists", reason = "File system operations should be done using sys_traits" }, - { path = "std::path::PathBuf::exists", reason = "File system operations should be done using sys_traits" }, - { path = "std::path::PathBuf::canonicalize", reason = "File system operations should be done using sys_traits" }, - { path = "std::path::PathBuf::is_dir", reason = "File system operations should be done using sys_traits" }, - { path = "std::path::PathBuf::is_file", reason = "File system operations should be done using sys_traits" }, - { path = "std::path::PathBuf::is_symlink", reason = "File system operations should be done using sys_traits" }, - { path = "std::path::PathBuf::metadata", reason = "File system operations should be done using sys_traits" }, - { path = "std::path::PathBuf::read_dir", reason = "File system operations should be done using sys_traits" }, - { path = "std::path::PathBuf::read_link", reason = "File system operations should be done using sys_traits" }, - { path = "std::path::PathBuf::symlink_metadata", reason = "File system operations should be done using sys_traits" }, - { path = "std::path::PathBuf::try_exists", reason = "File system operations should be done using sys_traits" }, { path = "std::env::set_current_dir", reason = "File system operations should be done using sys_traits" }, { path = "std::env::temp_dir", reason = "File system operations should be done using sys_traits" }, { path = "std::fs::canonicalize", reason = "File system operations should be done using sys_traits" }, diff --git a/runtime/clippy.toml b/runtime/clippy.toml index 79e6bbd083..f598f79672 100644 --- a/runtime/clippy.toml +++ b/runtime/clippy.toml @@ -9,16 +9,6 @@ disallowed-methods = [ { path = "std::path::Path::read_link", reason = "File system operations should be done using NodeFs trait" }, { path = "std::path::Path::symlink_metadata", reason = "File system operations should be done using NodeFs trait" }, { path = "std::path::Path::try_exists", reason = "File system operations should be done using NodeFs trait" }, - { path = "std::path::PathBuf::exists", reason = "File system operations should be done using NodeFs trait" }, - { path = "std::path::PathBuf::canonicalize", reason = "File system operations should be done using NodeFs trait" }, - { path = "std::path::PathBuf::is_dir", reason = "File system operations should be done using NodeFs trait" }, - { path = "std::path::PathBuf::is_file", reason = "File system operations should be done using NodeFs trait" }, - { path = "std::path::PathBuf::is_symlink", reason = "File system operations should be done using NodeFs trait" }, - { path = "std::path::PathBuf::metadata", reason = "File system operations should be done using NodeFs trait" }, - { path = "std::path::PathBuf::read_dir", reason = "File system operations should be done using NodeFs trait" }, - { path = "std::path::PathBuf::read_link", reason = "File system operations should be done using NodeFs trait" }, - { path = "std::path::PathBuf::symlink_metadata", reason = "File system operations should be done using NodeFs trait" }, - { path = "std::path::PathBuf::try_exists", reason = "File system operations should be done using NodeFs trait" }, { path = "std::env::set_current_dir", reason = "File system operations should be done using FileSystem trait" }, { path = "std::env::temp_dir", reason = "File system operations should be done using FileSystem trait" }, { path = "std::fs::canonicalize", reason = "File system operations should be done using FileSystem trait" }, diff --git a/runtime/permissions/clippy.toml b/runtime/permissions/clippy.toml index d2c94a63a3..06ce1ce1cf 100644 --- a/runtime/permissions/clippy.toml +++ b/runtime/permissions/clippy.toml @@ -1,5 +1,4 @@ disallowed-methods = [ - { path = "std::str::FromStr", reason = "Don't want to have stuff like `'0.0.0.0'.parse().unwrap()`. Instead implement ConcreteType::parse methods." }, { path = "std::env::current_dir", reason = "File system operations should be done using sys_traits" }, { path = "std::path::Path::canonicalize", reason = "File system operations should be done using sys_traits" }, { path = "std::path::Path::is_dir", reason = "File system operations should be done using sys_traits" }, @@ -10,16 +9,6 @@ disallowed-methods = [ { path = "std::path::Path::read_link", reason = "File system operations should be done using sys_traits" }, { path = "std::path::Path::symlink_metadata", reason = "File system operations should be done using sys_traits" }, { path = "std::path::Path::try_exists", reason = "File system operations should be done using sys_traits" }, - { path = "std::path::PathBuf::exists", reason = "File system operations should be done using sys_traits" }, - { path = "std::path::PathBuf::canonicalize", reason = "File system operations should be done using sys_traits" }, - { path = "std::path::PathBuf::is_dir", reason = "File system operations should be done using sys_traits" }, - { path = "std::path::PathBuf::is_file", reason = "File system operations should be done using sys_traits" }, - { path = "std::path::PathBuf::is_symlink", reason = "File system operations should be done using sys_traits" }, - { path = "std::path::PathBuf::metadata", reason = "File system operations should be done using sys_traits" }, - { path = "std::path::PathBuf::read_dir", reason = "File system operations should be done using sys_traits" }, - { path = "std::path::PathBuf::read_link", reason = "File system operations should be done using sys_traits" }, - { path = "std::path::PathBuf::symlink_metadata", reason = "File system operations should be done using sys_traits" }, - { path = "std::path::PathBuf::try_exists", reason = "File system operations should be done using sys_traits" }, { path = "std::env::set_current_dir", reason = "File system operations should be done using sys_traits" }, { path = "std::env::temp_dir", reason = "File system operations should be done using sys_traits" }, { path = "std::fs::canonicalize", reason = "File system operations should be done using sys_traits" },