Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

caseworkctl check: honour --deny-warnings and --production instead of ignoring them

未关闭 适合新手
#2,195 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
76/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
rust
领域
cli

调研方向

阅读 crates/registry-caseworkctl/src/project.rs 中的 check 和 crates/registry-caseworkctl/src/lib.rs 中的 CheckArgs 定义;比较 caseworkctl test 如何处理 --deny-warnings。使用 issue 中的命令复现问题,然后检查两个 flag 的报告和退出代码。完成标准是这些 flag 按文档所述工作,或者从 CLI 和参考文档中移除不受支持的行为;如果 flag 有变化,使用 cargo run --locked -p registry-cli-docs -- --write 重新生成 CLI 文档。

由索引模型根据 Issue 内容生成。

描述

1.0-blocker area:casework bug criticality:p1 triage:needs-implementation
What Happened

caseworkctl check accepts --deny-warnings and --production and ignores both. With an authored warning present, caseworkctl check PROJECT --deny-warnings prints the warning, reports ok: true, and exits 0. The JSON report is identical with and without either flag. caseworkctl test PROJECT --deny-warnings on the same project does refuse (exit 1), so the two commands disagree about the same flag.

Expected Behavior
  • --deny-warnings: a check with any warning reports ok: false and exits with the domain-refusal code, as test --deny-warnings does.
  • --production: either runs the production checks its help text promises ("Check the exact package closure required for production"), or the flag is removed from the clap definition and the CLI reference until it does something.
Reproduction
caseworkctl init demo --template standalone-decision
mkdir -p demo/holiday-sets/nested
caseworkctl check demo --deny-warnings --production; echo "exit $?"   # warning, exit 0
caseworkctl test demo --deny-warnings; echo "exit $?"                 # warning, exit 1
Where

crates/registry-caseworkctl/src/project.rs:check (parameters _production, _deny_warnings); flags declared in crates/registry-caseworkctl/src/lib.rs CheckArgs. A change to the flags needs cargo run --locked -p registry-cli-docs -- --write.

Environment

Registry Stack 0.42.0, main as of 2026-10-18.

主要语言
Rust
星标
2
派生
0
平均合并
10 小时 45 分钟
30 天内合并 PR
259

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

registrystack/registry-stack 的其他 Issue

查看 registrystack/registry-stack 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。