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 天內回覆