Skip to content

Commit

Permalink
Disallow usage of fs API via clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Hofer-Julian committed Dec 3, 2024
1 parent fcad8e9 commit a641cfb
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions clippy.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,31 @@ ignore-interior-mutability = [
"pixi::project::environment::Environment",
"pixi::project::solve_group::SolveGroup",
]

disallowed-types = [
"std::fs::DirEntry",
"std::fs::File",
"std::fs::OpenOptions",
"std::fs::ReadDir",
]

disallowed-methods = [
"std::fs::canonicalize",
"std::fs::copy",
"std::fs::create_dir",
"std::fs::create_dir_all",
"std::fs::hard_link",
"std::fs::metadata",
"std::fs::read",
"std::fs::read_dir",
"std::fs::read_link",
"std::fs::read_to_string",
"std::fs::remove_dir",
"std::fs::remove_dir_all",
"std::fs::remove_file",
"std::fs::rename",
"std::fs::set_permissions",
"std::fs::soft_link",
"std::fs::symlink_metadata",
"std::fs::write",
]

0 comments on commit a641cfb

Please sign in to comment.