allow-unwrap-in-tests = true
allow-expect-in-tests = true
allow-panic-in-tests = true
allow-indexing-slicing-in-tests = true
too-many-arguments-threshold = 8
doc-valid-idents = ["YouTube", ".."]
disallowed-methods = [
{ path = "reqwest::Client::new", reason = "use tilo_net::http::client()" },
{ path = "reqwest::Client::builder", reason = "use tilo_net::http::client()" },
{ path = "reqwest::ClientBuilder::new", reason = "use tilo_net::http::client()" },
{ path = "reqwest::get", reason = "use tilo_net::http::client()" },
{ path = "reqwest::blocking::Client::new", reason = "use tilo_net::http::blocking_client()", allow-invalid = true },
{ path = "reqwest::blocking::Client::builder", reason = "use tilo_net::http::blocking_client()", allow-invalid = true },
{ path = "reqwest::blocking::ClientBuilder::new", reason = "use tilo_net::http::blocking_client()", allow-invalid = true },
{ path = "reqwest::blocking::get", reason = "use tilo_net::http::blocking_client()", allow-invalid = true },
{ path = "std::env::set_var", reason = "inject the path, or use tilo_test_env::ScopedEnv/TestHome in tests" },
{ path = "std::env::remove_var", reason = "inject the path, or use tilo_test_env::ScopedEnv/TestHome in tests" },
{ path = "std::fs::File::lock", reason = "use advisory_lock::FileLock" },
{ path = "std::fs::File::lock_shared", reason = "use advisory_lock::FileLock" },
{ path = "std::fs::File::try_lock", reason = "use advisory_lock::FileLock" },
{ path = "std::fs::File::try_lock_shared", reason = "use advisory_lock::FileLock" },
{ path = "std::fs::File::unlock", reason = "use advisory_lock::FileLock" },
{ path = "libc::flock", reason = "use advisory_lock::FileLock", allow-invalid = true },
{ path = "rustix::fs::flock", reason = "use advisory_lock::FileLock" },
{ path = "libc::geteuid", reason = "use rustix::process::geteuid().as_raw()", allow-invalid = true },
{ path = "libc::getuid", reason = "use rustix::process::getuid().as_raw()", allow-invalid = true },
{ path = "libc::getegid", reason = "use rustix::process::getegid().as_raw()", allow-invalid = true },
{ path = "libc::getgid", reason = "use rustix::process::getgid().as_raw()", allow-invalid = true },
{ path = "automerge::AutoCommit::apply_changes", reason = "use tilo_automerge::ApplyIncoming::apply_incoming" },
{ path = "automerge::AutoCommit::apply_changes_batch", reason = "use tilo_automerge::ApplyIncoming::apply_incoming_batch" },
{ path = "automerge::AutoCommit::load_incremental", reason = "use tilo_automerge::ApplyIncoming::load_incoming" },
{ path = "automerge::AutoCommit::merge", reason = "use tilo_automerge::ApplyIncoming::merge_incoming" },
{ path = "automerge::AutoCommit::isolate", reason = "use tilo_automerge::ApplyIncoming::isolate_at" },
{ path = "automerge::AutoCommit::integrate", reason = "use tilo_automerge::ApplyIncoming::integrate_all" },
{ path = "automerge::sync::SyncDoc::receive_sync_message", reason = "use tilo_automerge::ApplyIncoming::receive_incoming_sync" },
{ path = "tilo_ui_base::widget::Widget::draw", reason = "draw a child with tilo_ui_base::widget::DrawChild::draw_child (or draw_child_at)", allow-invalid = true },
{ path = "std::time::Instant::now", reason = "read the clock through `crate::time::now()`" },
{ path = "std::time::SystemTime::now", reason = "read the clock through `crate::time::wall()`" },
{ path = "std::thread::spawn", reason = "run background work through `crate::background::Background::spawn`" },
{ path = "std::thread::Builder::spawn", reason = "run background work through `crate::background::Background::spawn`" },
{ path = "std::thread::sleep", reason = "schedule a wake with `crate::background::Background::wake_at` instead of blocking" },
]