Add --format json and --finding to spackle verify
まだ誰も着手していません。
評価
調査の方向性
internal/cli/verify.go の runVerify(13〜69行目)から始めます。ここでは flagsConfig|flagsOffline のみを登録し、結果ごとに固定幅のテキストを出力しています。--finding の検証には internal/cli/report.go:70 の findingIDRe を再利用し、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 ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- 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 日以内に返信