opencode/packages/cli-rs/clippy.toml
Simon Klee 6b1df0cceb
feat(cli-rs): add the native CLI and TUI (#63477)
Add packages/cli-rs, an OpenCode client written in Rust on OpenTUI's Rust crates. It is a client only.
2026-11-22 00:07:01 +01:00

17 lines
2.1 KiB
TOML

disallowed-methods = [
{ path = "url::Url::parse", reason = "use opencode_api_types::js::parse_url: the idna_adapter stub asserts on some non-ASCII hosts" },
{ path = "url::Url::join", reason = "use opencode_api_types::js::join_url: the idna_adapter stub asserts on some non-ASCII hosts" },
{ path = "url::Url::options", reason = "use opencode_api_types::js::parse_url: the idna_adapter stub asserts on some non-ASCII hosts" },
{ path = "url::Url::parse_with_params", reason = "use opencode_api_types::js::parse_url: the idna_adapter stub asserts on some non-ASCII hosts" },
{ path = "url::ParseOptions::parse", reason = "use opencode_api_types::js::parse_url: the idna_adapter stub asserts on some non-ASCII hosts" },
{ path = "url::Host::parse", reason = "use opencode_api_types::js::parse_url: the idna_adapter stub asserts on some non-ASCII hosts" },
{ path = "url::quirks::set_host", reason = "the idna_adapter stub asserts on some non-ASCII hosts" },
{ path = "url::quirks::set_hostname", reason = "the idna_adapter stub asserts on some non-ASCII hosts" },
{ path = "url::Url::set_host", reason = "the idna_adapter stub asserts on some non-ASCII hosts; check the host with opencode_api_types::js::parse_url first" },
{ path = "reqwest::Client::new", reason = "use opencode_api::transport::client_builder: its clients leave redirects to transport::fetch" },
{ path = "reqwest::Client::builder", reason = "use opencode_api::transport::client_builder: its clients leave redirects to transport::fetch" },
{ path = "reqwest::ClientBuilder::new", reason = "use opencode_api::transport::client_builder: its clients leave redirects to transport::fetch" },
{ path = "reqwest::ClientBuilder::redirect", reason = "redirects go through opencode_api::transport::fetch, which resolves Location with js::join_url" },
{ path = "reqwest::RequestBuilder::send", reason = "use opencode_api::transport::fetch: it follows redirects through js::join_url" },
{ path = "reqwest::Client::execute", reason = "use opencode_api::transport::fetch: it follows redirects through js::join_url" },
]