diff options
Diffstat (limited to 'ext/node/clippy.toml')
-rw-r--r-- | ext/node/clippy.toml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/ext/node/clippy.toml b/ext/node/clippy.toml new file mode 100644 index 000000000..3ce5624b3 --- /dev/null +++ b/ext/node/clippy.toml @@ -0,0 +1,21 @@ +disallowed-methods = [ + { path = "std::env::current_dir", reason = "File system operations should be done using NodeFs trait" }, + { path = "std::path::Path::exists", reason = "File system operations should be done using NodeFs trait" }, + { path = "std::fs::canonicalize", reason = "File system operations should be done using NodeFs trait" }, + { path = "std::fs::copy", reason = "File system operations should be done using NodeFs trait" }, + { path = "std::fs::create_dir", reason = "File system operations should be done using NodeFs trait" }, + { path = "std::fs::create_dir_all", reason = "File system operations should be done using NodeFs trait" }, + { path = "std::fs::hard_link", reason = "File system operations should be done using NodeFs trait" }, + { path = "std::fs::metadata", reason = "File system operations should be done using NodeFs trait" }, + { path = "std::fs::read", reason = "File system operations should be done using NodeFs trait" }, + { path = "std::fs::read_dir", reason = "File system operations should be done using NodeFs trait" }, + { path = "std::fs::read_link", reason = "File system operations should be done using NodeFs trait" }, + { path = "std::fs::read_to_string", reason = "File system operations should be done using NodeFs trait" }, + { path = "std::fs::remove_dir", reason = "File system operations should be done using NodeFs trait" }, + { path = "std::fs::remove_dir_all", reason = "File system operations should be done using NodeFs trait" }, + { path = "std::fs::remove_file", reason = "File system operations should be done using NodeFs trait" }, + { path = "std::fs::rename", reason = "File system operations should be done using NodeFs trait" }, + { path = "std::fs::set_permissions", reason = "File system operations should be done using NodeFs trait" }, + { path = "std::fs::symlink_metadata", reason = "File system operations should be done using NodeFs trait" }, + { path = "std::fs::write", reason = "File system operations should be done using NodeFs trait" }, +] |