forked from anoma/namada
-
Notifications
You must be signed in to change notification settings - Fork 0
/
clippy.toml
13 lines (13 loc) · 905 Bytes
/
clippy.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
disallowed-types = [
{ path = "std::collections::HashMap", reason = "Non-deterministic iter - use indexmap::IndexMap instead" },
{ path = "std::collections::HashSet", reason = "Non-deterministic iter - use indexmap::IndexSet instead" },
]
disallowed-methods = [
{ path = "std::time::Instant::now", reason = "Do not use current date/time in code that must be deterministic" },
{ path = "chrono::DateTime::now", reason = "Do not use current date/time in code that must be deterministic" },
{ path = "chrono::Utc::now", reason = "Do not use current date/time in code that must be deterministic" },
{ path = "namada_core::time::DateTimeUtc::now", reason = "Do not use current date/time in code that must be deterministic" },
{ path = "wasmtimer::std::Instant", reason = "Do not use current date/time in code that must be deterministic" },
]
allow-dbg-in-tests = true
allow-print-in-tests = true