fix(ci): no unused-crate inspection in Qodana for Rust

One run in five on #120 reported "Unused crate: sha2", the crate
env_hash is built on, on a commit that changed only a Markdown file.
Every run's sanity check finds the Cargo project only partly loaded in
the linter's container, and the inspection sometimes concludes from
that. A baseline entry would not hold, because its fingerprint hashes
neighbouring lines that Dependabot rewrites weekly.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
poli0981andClaude Opus 5.5 committed 2026-11-21 23:22:12 +07:00
1 parent 807d9bf839
commit 2303aa2c7e
2 files changed
+15

No files matched your search

+6
View File
@@ -1717,6 +1717,12 @@ the same version. [#120](https://github.com/poli0981org/pipdock/pull/120).
- `env remove <dir>` answered "not on the list" for a deleted venv — the one case it exists for —
because `interpreter_in` resolves only what is there. Found by its own test.
- Qodana for JS flagged a non-ASCII identifier in `triage.cjs`; renamed.
- Qodana for Rust failed one run in five on #120 — the last on a commit that changed only this
file — with "Unused crate: sha2", the crate `env_hash` is built on. Every run's sanity check finds
the Cargo project only partly loaded in its container, and the unused-crate inspection sometimes
draws its conclusion from that. A baseline entry would not have held, since its fingerprint
hashes neighbouring lines Dependabot rewrites, so the inspection is excluded in
`qodana-rust.yaml`, with the reason.
- The installed build — the release dry run's NSIS installer, a scratch `LOCALAPPDATA`, driven over
CDP: the legal gate once on a fresh profile; an interpreter added, rescanned, updated and rolled
back in a scratch venv named `myproj-env` outside the working directory; the entry kept across a
+9
View File
@@ -53,3 +53,12 @@ exclude:
- target
- tools
- ui
# **Unused-crate reports are a coin toss in this container.** Every run's sanity check finds the
# Cargo project only partly loaded (the Tauri build scripts above) and paths in `model.rs` and
# others unresolved; on one run in five on #120 that became "Unused crate: sha2", a crate
# `model::sha256_hex` — and so every `env_hash` — is built on, on a commit that changed a Markdown
# file. A baseline entry would not hold: its fingerprint hashes the neighbouring lines, which
# Dependabot rewrites weekly. Nothing else here checks for unused crates, so this one goes rather
# than leave a check that fails at random; `cargo machete` is the backlog row that would replace
# it.
- name: CargoUnusedDependency