chore: fix lint warnings (#30399)
Some checks are pending
ci / lint debug windows-x86_64 (push) Blocked by required conditions
ci / lint debug linux-x86_64 (push) Blocked by required conditions
ci / lint debug macos-x86_64 (push) Blocked by required conditions
ci / test debug linux-x86_64 (push) Blocked by required conditions
ci / test release linux-x86_64 (push) Blocked by required conditions
ci / test debug macos-x86_64 (push) Blocked by required conditions
ci / test release macos-x86_64 (push) Blocked by required conditions
ci / test debug windows-x86_64 (push) Blocked by required conditions
ci / test release windows-x86_64 (push) Blocked by required conditions
ci / build libs (push) Blocked by required conditions
ci / pre-build (push) Waiting to run
ci / test debug linux-aarch64 (push) Blocked by required conditions
ci / test release linux-aarch64 (push) Blocked by required conditions
ci / test debug macos-aarch64 (push) Blocked by required conditions
ci / test release macos-aarch64 (push) Blocked by required conditions
ci / bench release linux-x86_64 (push) Blocked by required conditions
ci / publish canary (push) Blocked by required conditions

This commit is contained in:
David Sherret 2025-08-13 20:25:57 -04:00 committed by GitHub
parent 3b0cd8261a
commit 228574b042
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 13 additions and 124 deletions

View file

@ -3,23 +3,23 @@ disallowed-methods = [
{ path = "std::process::exit", reason = "use deno_runtime::exit instead" }, { 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 = "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::ctrl_c", reason = "use deno_signals crate instead" },
{ path = "tokio::signal::unix::signal", 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" }, { 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" }, { 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" }, { 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" }, { 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" }, { path = "tokio::signal::windows::ctrl_shutdown", reason = "use deno_signals crate instead", allow-invalid = true },
] ]
disallowed-types = [ disallowed-types = [
{ path = "reqwest::Client", reason = "use crate::http_util::HttpClient instead" }, { path = "reqwest::Client", reason = "use crate::http_util::HttpClient instead" },
{ path = "sys_traits::impls::RealSys", reason = "use crate::sys::CliSys 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::Signal", reason = "use deno_signals crate instead", allow-invalid = true },
{ path = "tokio::signal::unix::SignalKind", reason = "use deno_signals crate instead" }, { 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" }, { 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" }, { 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" }, { 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" }, { 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" }, { path = "tokio::signal::windows::CtrlShutdown", reason = "use deno_signals crate instead", allow-invalid = true },
] ]
ignore-interior-mutability = [ ignore-interior-mutability = [
"lsp_types::Uri", "lsp_types::Uri",

View file

@ -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::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::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::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::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::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" }, { path = "std::fs::canonicalize", reason = "File system operations should be done using DenoLibSys" },

View file

@ -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::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::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::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::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::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" }, { path = "std::fs::canonicalize", reason = "File system operations should be done using FileSystem trait" },

View file

@ -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::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::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::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::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::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" }, { path = "std::fs::create_dir", reason = "File system operations should be done using FileSystem trait" },

View file

@ -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::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::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::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::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::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" }, { path = "std::fs::create_dir", reason = "File system operations should be done using the sys_traits crate" },

View file

@ -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::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::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::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::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::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" }, { path = "std::fs::canonicalize", reason = "File system operations should be done using sys_traits" },

View file

@ -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::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::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::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::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::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" }, { path = "std::fs::canonicalize", reason = "File system operations should be done using sys_traits" },

View file

@ -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::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::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::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::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::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" }, { path = "std::fs::canonicalize", reason = "File system operations should be done using sys_traits" },

View file

@ -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::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::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::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::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::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" }, { path = "std::fs::create_dir", reason = "File system operations should be done using the sys_traits crate" },

View file

@ -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::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::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::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::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::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" }, { path = "std::fs::canonicalize", reason = "File system operations should be done using sys_traits" },

View file

@ -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::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::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::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::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::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" }, { path = "std::fs::canonicalize", reason = "File system operations should be done using FileSystem trait" },

View file

@ -1,5 +1,4 @@
disallowed-methods = [ 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::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::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" }, { 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::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::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::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::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::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" }, { path = "std::fs::canonicalize", reason = "File system operations should be done using sys_traits" },