ci: lint-enforce expect-with-reason
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 48/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Rust
- Estrellas
- 164
- Forks
- 30
- Merge medio
- 1 d 13 h
- PR fusionados (30 d)
- 84
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de Devolutions/devolutions-gateway
-
Dificultad 4/5 3-5 días Aptitud para principiantes 55/100
Devolutions/devolutions-gateway#2109 ·
Los mantenedores suelen responder en 1 día
-
test(testsuite): drop the devolutions-gateway dev-dependencyPosiblemente ocupada @CBenoit la tomó hace 12 días. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 18/100
Devolutions/devolutions-gateway#2090 ·
Los mantenedores suelen responder en 1 día
-
allow us to disable tls 1.1, 1.2Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
Devolutions/devolutions-gateway#2047 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
Devolutions/devolutions-gateway#1930 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 55/100
Devolutions/devolutions-gateway#1788 ·
Los mantenedores suelen responder en 1 día
Todos los issues de Devolutions/devolutions-gateway
Issues similares
-
desktop documentation
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
vfarcic/dot-agent-deck#2008 ·
Los mantenedores suelen responder en 1 día
-
needs triage
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
pbakaus/impeccable#1210 ·
Los mantenedores suelen responder en 1 día
-
area: ci priority: P4 ready-for-agent
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
shep-pm/shep#1249 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
L: javascript
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
dependabot/dependabot-core#16744 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
nautechsystems/nautilus_trader#5486 · 1 comentario ·
Los mantenedores suelen responder en 1 día