-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathclippy.toml
More file actions
31 lines (25 loc) Β· 1.95 KB
/
Copy pathclippy.toml
File metadata and controls
31 lines (25 loc) Β· 1.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Clippy configuration for WaveFlow
# Applied when running: cargo clippy --manifest-path src-tauri/Cargo.toml --all-targets
#
# This file only controls numeric thresholds and feature-detection hints.
# Lint allow/warn/deny attributes belong in src-tauri/src/lib.rs (crate-wide)
# or inline with #[allow(...)] for justified local exceptions.
# ββ Rust version hint βββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# Prevents Clippy from suggesting APIs not available before this version.
# Tauri 2 + sqlx 0.8 require β₯ 1.75; bumped to 1.80 for `std::sync::LazyLock`
# (used by the Last.fm HTML-stripper static regexes in `src/lastfm.rs`).
msrv = "1.80"
# ββ Complexity thresholds βββββββββββββββββββββββββββββββββββββββββββββββββββββ
# Tauri command handlers often receive many parameters (pool, state, optionsβ¦).
too-many-arguments-threshold = 8
# Scanner, decoder, and DLNA Browse handlers are legitimately long.
too-many-lines-threshold = 150
# Allow moderately complex match arms in the audio engine and SQL builders.
cognitive-complexity-threshold = 30
# ββ Type complexity βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# sqlx query results and nested async combinators push this threshold.
type-complexity-threshold = 350
# ββ Allowed identifier characters βββββββββββββββββββββββββββββββββββββββββββββ
# Accept snake_case names that include common audio / signal-processing
# abbreviations (e.g. `pcm_buf`, `rms_db`, `bpm_f32`).
allowed-idents-below-min-chars = ["db", "id", "lp", "hp", "eq", "bpm", "rms", "fir"]