Files
letro-authentication-service/clippy.toml
2022-11-03 15:19:49 +01:00

13 lines
500 B
TOML

doc-valid-idents = ["OpenID", "OAuth", ".."]
disallowed-methods = [
{ path = "rand::thread_rng", reason = "do not create rngs on the fly, pass them as parameters" },
{ path = "chrono::Utc::now", reason = "source the current time from the clock instead" },
{ path = "ulid::Ulid::from_datetime", reason = "use Ulid::from_datetime_with_source instead" },
{ path = "ulid::Ulid::new", reason = "use Ulid::from_datetime_with_source instead" },
]
disallowed-types = [
"rand::OsRng",
]