caseworkctl check: honour --deny-warnings and --production instead of ignoring them
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
阅读 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 内容生成。
描述
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 reportsok: falseand exits with the domain-refusal code, astest --deny-warningsdoes.--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
环境准备
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
registrystack/registry-stack 的其他 Issue
-
area:render bug criticality:p2
难度 2/5 1-3 小时 新手友好度 78/100
registrystack/registry-stack#2223 · 1 条评论 ·
维护者通常 1 天内回复
-
area:discovery bug criticality:p2
难度 2/5 1-3 小时 新手友好度 83/100
registrystack/registry-stack#2221 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 74/100
registrystack/registry-stack#2200 ·
维护者通常 1 天内回复
-
area:casework bug criticality:p2 triage:needs-implementation
难度 2/5 1-3 小时 新手友好度 82/100
registrystack/registry-stack#2199 ·
维护者通常 1 天内回复
-
area:evidence bug criticality:p3 triage:needs-implementation
难度 1/5 1-3 小时 新手友好度 84/100
registrystack/registry-stack#2194 ·
维护者通常 1 天内回复
查看 registrystack/registry-stack 的全部 Issue
相似的 Issue
-
documentation
难度 2/5 1-3 小时 新手友好度 78/100
charles-hood/DiagramCraft#73 ·
-
难度 1/5 1-3 小时 新手友好度 78/100
ontologyportal/sigma-rs#200 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
chipsalliance/caliptra-sw#4311 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
`image_generation`: `max_retries` is ignored for OpenAI-compatible providers (always 2 retries)可能已有人在做 @ericz7900 今天认领。 未关闭llm translation
难度 2/5 1-3 小时 新手友好度 77/100
维护者通常 1 天内回复