๐Ÿ“ฆ rust-lang / rust-analyzer

๐Ÿ“„ clippy.toml ยท 10 lines
1
2
3
4
5
6
7
8
9
10disallowed-types = [
    { path = "std::collections::HashMap", reason = "use FxHashMap" },
    { path = "std::collections::HashSet", reason = "use FxHashSet" },
    { path = "std::collections::hash_map::RandomState", reason = "use BuildHasherDefault<FxHasher>"}
]

disallowed-methods = [
    { path = "std::process::Command::new", reason = "use `toolchain::command` instead as it forces the choice of a working directory" },
]