ci: lint-enforce expect-with-reason
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 48/100
Direzione di ricerca
Start by reading AGENTS.md and inspect Rust lint attributes across the workspace, especially the named crates and binary main.rs files. The issue provides rg commands to reproduce the counts; review each suppression and add a reason or use expect where it is valid across feature configurations. Done when both workspace Clippy lints are enabled and CI passes with all suppressions addressed.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
AGENTS.md asks for #[expect(clippy::<lint>, reason = "...")] when silencing a lint; neither half is checked.
Nothing stops an #[allow], and nothing stops an #[expect] without a reason.
IronRDP and IronVNC set clippy::allow_attributes = "warn" in [workspace.lints.clippy]; this workspace does not.
Enabling both lints makes each half fail CI under -D warnings:
[workspace.lints.clippy]
allow_attributes = "warn"
allow_attributes_without_reason = "warn"
Existing sites need a sweep first.
Counts at c6e0595e over --type rust:
| Pattern | Sites | Files |
|---|---|---|
#[allow(...)] (outer) |
104 | 44 |
#![allow(...)] (inner, crate-level) |
100 | 74 |
#[expect(...)] without reason |
25 | 18 |
#![expect(...)] without reason |
0 | 0 |
Of the 204 allow sites, 34 already carry a reason; the rest need one or a switch to expect.
Outer #[allow] sites by area: devolutions-gateway 50, crates/devolutions-pedm-shared 19, devolutions-agent 11, devolutions-session 11, the remainder spread across seven crates and tools.
#[expect] sites without reason by area: crates/win-api-wrappers 11, crates/devolutions-pedm 7, devolutions-gateway 4, crates/pedm-simulator 2, jetsocat 1.
Most inner #![allow] sites are unused_crate_dependencies and clippy::unwrap_used at the top of devolutions-gateway/tests/*.rs and print_stdout/print_stderr in binary main.rs files.
Crate-level suppressions that are only sometimes fulfilled, such as unused_crate_dependencies under feature combinations, may need to stay #![allow] with a reason rather than become #![expect], which would trigger unfulfilled_lint_expectations in the other configuration.
Reproduce the counts with rg -c -U '#!?\[allow\([^\]]*\)\]' --type rust and rg -c -U --pcre2 '#\[expect\((?:(?!reason)[^\]])*\)\]' --type rust.
[!NOTE]
Human-tuned, LLM-assisted content.
- Lingua principale
- Rust
- Stelle
- 164
- Fork
- 30
- Merge medio
- 1g 13h
- PR unite (30g)
- 84
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Devolutions/devolutions-gateway
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 55/100
Devolutions/devolutions-gateway#2109 ·
I maintainer di solito rispondono entro 1 giorno
-
test(testsuite): drop the devolutions-gateway dev-dependencyForse già presa @CBenoit l’ha presa 12 giorni fa. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 18/100
Devolutions/devolutions-gateway#2090 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
Devolutions/devolutions-gateway#2047 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
Devolutions/devolutions-gateway#1930 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 55/100
Devolutions/devolutions-gateway#1788 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di Devolutions/devolutions-gateway
Issue simili
-
rivetkit 3.0: HTTP 400 overloaded on node pool upsert is treated as fatal and exits the processAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
rivet-dev/rivet#5933 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Add a `--skip-readme` option to `gleam new`Forse già presa @mine-tech-oficial l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100
gleam-lang/gleam#6458 · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
CyberTimon/RapidRAW#2049 ·
I maintainer di solito rispondono entro 1 giorno
-
build.yml: macOS arm64 DMG fails, cargo missing on the macos-26 runner imageForse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
getopenscreen/openscreen#1423 ·
I maintainer di solito rispondono entro 1 giorno
-
bug good first issue python
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
I maintainer di solito rispondono entro 1 giorno