/
githubmirror
/
deno
Обзор
Документация
Войти
/
githubmirror
/
deno
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
libs/cli_parser/clippy.toml
47 строк
5 KB
Bartek Iwańczuk
refactor: extract CLI flag types into deno_cli_parser crate (#35333)
19 июн 2026, 00:13
Не верифицирован
19 июн 2026, 00:13
85b4cb5
Код
Авторство
О чём код?
disallowed-methods = [ { path = "std::env::current_dir", reason = "File system operations should be done using DenoCacheEnv trait" }, { path = "std::path::Path::canonicalize", reason = "File system operations should be done using DenoCacheEnv trait" }, { path = "std::path::Path::is_dir", reason = "File system operations should be done using DenoCacheEnv trait" }, { path = "std::path::Path::is_file", reason = "File system operations should be done using DenoCacheEnv trait" }, { path = "std::path::Path::is_symlink", reason = "File system operations should be done using DenoCacheEnv trait" }, { path = "std::path::Path::metadata", reason = "File system operations should be done using DenoCacheEnv trait" }, { path = "std::path::Path::read_dir", reason = "File system operations should be done using DenoCacheEnv trait" }, { path = "std::path::Path::read_link", reason = "File system operations should be done using DenoCacheEnv trait" }, { path = "std::path::Path::symlink_metadata", reason = "File system operations should be done using DenoCacheEnv trait" }, { path = "std::path::Path::try_exists", reason = "File system operations should be done using DenoCacheEnv trait" }, { path = "std::env::set_current_dir", reason = "File system operations should be done using DenoCacheEnv trait" }, { path = "std::env::temp_dir", reason = "File system operations should be done using DenoCacheEnv trait" }, { path = "std::fs::canonicalize", reason = "File system operations should be done using DenoCacheEnv trait" }, { path = "std::fs::copy", reason = "File system operations should be done using DenoCacheEnv trait" }, { path = "std::fs::create_dir_all", reason = "File system operations should be done using DenoCacheEnv trait" }, { path = "std::fs::create_dir", reason = "File system operations should be done using DenoCacheEnv trait" }, { path = "std::fs::DirBuilder::new", reason = "File system operations should be done using DenoCacheEnv trait" }, { path = "std::fs::hard_link", reason = "File system operations should be done using DenoCacheEnv trait" }, { path = "std::fs::metadata", reason = "File system operations should be done using DenoCacheEnv trait" }, { path = "std::fs::OpenOptions::new", reason = "File system operations should be done using DenoCacheEnv trait" }, { path = "std::fs::read_dir", reason = "File system operations should be done using DenoCacheEnv trait" }, { path = "std::fs::read_link", reason = "File system operations should be done using DenoCacheEnv trait" }, { path = "std::fs::read_to_string", reason = "File system operations should be done using DenoCacheEnv trait" }, { path = "std::fs::read", reason = "File system operations should be done using DenoCacheEnv trait" }, { path = "std::fs::remove_dir_all", reason = "File system operations should be done using DenoCacheEnv trait" }, { path = "std::fs::remove_dir", reason = "File system operations should be done using DenoCacheEnv trait" }, { path = "std::fs::remove_file", reason = "File system operations should be done using DenoCacheEnv trait" }, { path = "std::fs::rename", reason = "File system operations should be done using DenoCacheEnv trait" }, { path = "std::fs::set_permissions", reason = "File system operations should be done using DenoCacheEnv trait" }, { path = "std::fs::symlink_metadata", reason = "File system operations should be done using DenoCacheEnv trait" }, { path = "std::fs::write", reason = "File system operations should be done using DenoCacheEnv trait" }, { path = "std::path::Path::canonicalize", reason = "File system operations should be done using DenoCacheEnv trait" }, { path = "std::path::Path::exists", reason = "File system operations should be done using DenoCacheEnv trait" }, { path = "std::time::SystemTime::now", reason = "Getting the time should be done using DenoCacheEnv trait" }, { path = "sys_traits::EnvCurrentDir::env_current_dir", reason = "use crate::util::env::resolve_cwd instead and prefer passing it the initial_cwd" }, { path = "std::path::absolute", reason = "File system operations should be done using DenoCacheEnv trait" }, { path = "std::env::var", reason = "Environment operations should be done using DenoCacheEnv trait" }, { path = "std::env::var_os", reason = "Environment operations should be done using DenoCacheEnv trait" }, { path = "url::Url::to_file_path", reason = "Use deno_path_util instead" }, { path = "url::Url::from_file_path", reason = "Use deno_path_util instead" }, { path = "url::Url::from_directory_path", reason = "Use deno_path_util instead" }, { path = "chrono::Utc::now", reason = "Time should be retrieved using DenoCacheEnv trait" }, ] disallowed-types = [ { path = "std::sync::Arc", reason = "use crate::sync::MaybeArc instead" }, ]