ci: lint-enforce expect-with-reason
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 48/100
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- Rust
- スター
- 164
- フォーク
- 30
- 平均マージ
- 1日 13時間
- マージ済み PR(30日)
- 84
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Devolutions/devolutions-gateway のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
Devolutions/devolutions-gateway#2109 ·
メンテナーはふだん 1 日以内に返信
-
test(testsuite): drop the devolutions-gateway dev-dependency対応中かも @CBenoit が 12 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 18/100
Devolutions/devolutions-gateway#2090 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
Devolutions/devolutions-gateway#2047 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
Devolutions/devolutions-gateway#1930 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
Devolutions/devolutions-gateway#1788 ·
メンテナーはふだん 1 日以内に返信
Devolutions/devolutions-gateway の issue をすべて見る
似ている issue
-
desktop documentation
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
vfarcic/dot-agent-deck#2008 ·
メンテナーはふだん 1 日以内に返信
-
needs triage
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
pbakaus/impeccable#1210 ·
メンテナーはふだん 1 日以内に返信
-
enhancement ux-opportunities
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
area: ci priority: P4 ready-for-agent
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
shep-pm/shep#1249 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
`PartialEq` for `AssignedBigUint` treats different values as equal対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンstatus:untriaged
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
midnightntwrk/midnight-zk#600 ·
メンテナーはふだん 2 日以内に返信