forked from vercel/turborepo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclippy.toml
More file actions
22 lines (21 loc) · 1.05 KB
/
Copy pathclippy.toml
File metadata and controls
22 lines (21 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
disallowed-types = [
# Use turbo_tasks_hash::{DeterministicHash, Xxh3Hash64Hasher} instead.
"std::collections::hash_map::DefaultHasher",
]
disallowed-methods = [
# We forbid the use of VecDeque::new as it allocates, which is kind of unexpected
# Instead use VecDeque::with_capacity to make it explicit or opt-out of that.
"std::collections::VecDeque::new",
# biome's deserialization entry points run even when the source failed to
# parse, and deserializing a broken syntax tree can panic (e.g. unterminated
# string literals, vercel/turborepo#13197). Use
# turborepo_errors::json::deserialize_from_json_str, which reports parse
# errors instead of deserializing a broken tree.
"biome_deserialize::json::deserialize_from_json_str",
"biome_deserialize::json::deserialize_from_str",
"biome_deserialize::json::deserialize_from_json_ast",
]
# Tests can use panic-extraction helpers freely. The cargo lint alias skips
# test targets, but this keeps #[cfg(test)] modules exempt if linted directly.
allow-expect-in-tests = true
allow-unwrap-in-tests = true