Add --format json and --finding to spackle verify
还没有人认领这个 Issue。
评估
调研方向
从 internal/cli/verify.go 中的 runVerify(第 13-69 行)开始,它只注册 flagsConfig|flagsOffline,并为每个结果输出定宽文本。复用 internal/cli/report.go:70 中的 findingIDRe 来校验 --finding,并确认 internal/engine/verify.go 如何接收证明。完成标准是:verify --format json 输出一个包含所有结果的 JSON 文档;verify --finding <id> 只运行该 finding 的证明;未知 id 视为用法错误;docs/config.md 列出这些标志。
由索引模型根据 Issue 内容生成。
描述
Summary
spackle verify has no JSON output and always re-runs every stored proof. Every other inspection command now has --format json, and report gained --finding <id>.
Where
internal/cli/verify.go:13-69(registers onlyflagsConfig|flagsOffline; fixed-width text per outcome)internal/cli/report.go:70(findingIDRe, reusable for validation)
Impact
Scripts and CI jobs that check whether a fix landed must scrape text to learn which finding still reproduces. A developer who fixed one finding has to wait for every proof in the run (each a sandbox start) to confirm it.
Steps to reproduce
spackle verify latest --format json and spackle verify latest --finding SPK-... both exit 2 as unknown flags.
Suggested fix
- Add
--format text|json, encoding{"outcomes":[{finding_id,title,state,note}],"still":n,"fixed":n,"not_verified":n}. - Add a repeatable
--findingthat filters the proofs passed toengine.Verify, validated withfindingIDRe. - Keep the exit-code rule.
Acceptance criteria
-
verify --format jsonprints one JSON document with every outcome. -
verify --finding <id>re-runs only that finding's proofs, and an unknown id is a usage error. -
docs/config.mdlists the new flags.
Getting started
- Relevant files:
internal/cli/verify.go,internal/engine/verify.go,docs/config.md - How to run tests:
go test ./internal/cli ./internal/engine
Filed by repo-audit/full-audit at fffef43. Severity: low. Effort: S. audit-key: enhancement|internal/cli/verify.go|runVerify
- 主要语言
- Go
- 星标
- 0
- 派生
- 1
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
TMHSDigital/Spackle 的其他 Issue
-
enhancement good first issue severity: low
难度 2/5 1-3 小时 新手友好度 72/100
TMHSDigital/Spackle#138 ·
-
documentation good first issue severity: low
难度 2/5 1-3 小时 新手友好度 78/100
TMHSDigital/Spackle#135 ·
-
bug good first issue severity: low
难度 2/5 1-3 小时 新手友好度 72/100
TMHSDigital/Spackle#131 ·
-
bug good first issue severity: low
难度 2/5 1-3 小时 新手友好度 78/100
TMHSDigital/Spackle#129 ·
-
bug good first issue severity: low
难度 2/5 1-3 小时 新手友好度 82/100
TMHSDigital/Spackle#128 ·
查看 TMHSDigital/Spackle 的全部 Issue
相似的 Issue
-
bug raised-by:reviewer
难度 2/5 1-3 小时 新手友好度 66/100
medici-finance/assay#7655 ·
维护者通常 1 天内回复
-
helm chart: make DaemonSet pod affinity configurable via values.yaml可能已有人在做 @Young-Zen 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
flannel-io/flannel#2632 ·
维护者通常 6 天内回复
-
go-vulnerability security-scan
难度 1/5 1 小时以内 新手友好度 72/100
teslashibe/agent-go#36 ·
-
enhancement
难度 2/5 1-3 小时 新手友好度 72/100
nwverse/persona#15194 · 1 条评论 ·
维护者通常 1 天内回复
-
bug flaky-test
难度 2/5 1-3 小时 新手友好度 78/100
rosskukulinski/tailworks#411 ·
维护者通常 1 天内回复