-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathclippy.toml
More file actions
37 lines (37 loc) · 1.72 KB
/
clippy.toml
File metadata and controls
37 lines (37 loc) · 1.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
absolute-paths-allowed-crates = [
"clap",
"color_eyre",
"hyper",
"std",
"tracing_subscriber",
"tokio",
]
disallowed-macros = [
{ path = "std::assert_ne", reason = "use `pretty_assertions::assert_ne` instead" },
{ path = "std::assert_eq", reason = "use `pretty_assertions::assert_eq` instead" },
# https://doc.rust-lang.org/std/assert_matches/macro.assert_matches.html
# { path = "std::assert_matches", reason = "use `pretty_assertions::assert_matches` instead" },
]
disallowed-methods = [
# https://github.com/serde-rs/json/issues/160
"serde_json::from_reader",
]
disallowed-names = ["bar", "baz", "e", "err", "foo", "ok", "quux"]
disallowed-types = [
{ path = "std::collections::HashMap", replacement = "hashbrown::HashMap", reason = "The standard library version sacrificies performance for HashDos resistance, which should be chosen explicitly" },
{ path = "std::collections::HashSet", replacement = "hashbrown::HashSet", reason = "The standard library version sacrificies performance for HashDos resistance, which should be chosen explicitly" },
]
enforced-import-renames = [
{ path = "serde_json::from_slice", rename = "from_json_slice" },
{ path = "serde_json::from_str", rename = "from_json_str" },
{ path = "serde_json::from_value", rename = "from_json_value" },
{ path = "serde_json::to_value", rename = "to_json_value" },
{ path = "serde_json::value::to_raw_value", rename = "to_raw_json_value" },
{ path = "serde_json::value::RawValue", rename = "RawJsonValue" },
{ path = "serde_json::Value", rename = "JsonValue" },
]
standard-macro-braces = [
{ name = "quote", brace = "{" },
{ name = "quote::quote", brace = "{" },
]
warn-on-all-wildcard-imports = true