-
Notifications
You must be signed in to change notification settings - Fork 868
Expand file tree
/
Copy path.clippy.toml
More file actions
17 lines (15 loc) · 1003 Bytes
/
.clippy.toml
File metadata and controls
17 lines (15 loc) · 1003 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Copyright © SixtyFPS GmbH <info@slint.dev>
# SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0
type-complexity-threshold = 2500
too-many-arguments-threshold = 10
# `disallowed-methods` is the configuration for the `clippy::disallowed_methods`
# lint, which is allow-by-default. Listing entries here therefore has no effect
# in crates that don't opt into the lint. We currently enable it only in the
# slint-lsp crate (see `#![deny(clippy::disallowed_methods)]` in `tools/lsp/main.rs`
# and `tools/lsp/wasm_main.rs`), so the entries below are effectively scoped to
# slint-lsp. Putting them here (rather than in `tools/lsp/clippy.toml`) avoids
# shadowing the workspace-wide thresholds above — clippy reads exactly one
# clippy.toml per crate, with no merging.
disallowed-methods = [
{ path = "tokio::task::spawn_local", reason = "Use `slint_lsp::common::spawn_local` — it routes to `wasm_bindgen_futures::spawn_local` on wasm." },
]