Add --format json and --finding to spackle verify
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- Nửa ngày
- Mức phù hợp với người mới
- 72/100
Hướng nghiên cứu
Bắt đầu tại internal/cli/verify.go, hàm runVerify (dòng 13-69), hàm này chỉ đăng ký flagsConfig|flagsOffline và in văn bản cố định độ rộng cho từng kết quả. Tái sử dụng findingIDRe từ internal/cli/report.go:70 để kiểm tra --finding, rồi xem internal/engine/verify.go nhận bằng chứng như thế nào. Hoàn thành khi verify --format json in ra một tài liệu JSON duy nhất chứa mọi kết quả, verify --finding <id> chỉ chạy bằng chứng của finding đó, id không tồn tại là lỗi sử dụng, và docs/config.md liệt kê các cờ.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- Go
- Star
- 0
- Fork
- 1
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của TMHSDigital/Spackle
-
enhancement good first issue severity: low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
TMHSDigital/Spackle#138 ·
-
documentation good first issue severity: low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
TMHSDigital/Spackle#135 ·
-
bug good first issue severity: low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
TMHSDigital/Spackle#131 ·
-
runs and runs compare print target text without the control-character cleaning the reports useĐang mởbug good first issue severity: low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
TMHSDigital/Spackle#129 ·
-
bug good first issue severity: low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
TMHSDigital/Spackle#128 ·
Tất cả issue của TMHSDigital/Spackle
Issue tương tự
-
bug raised-by:reviewer
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
medici-finance/assay#7655 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
helm chart: make DaemonSet pod affinity configurable via values.yamlCó thể đã có người làm @Young-Zen đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
flannel-io/flannel#2632 ·
Maintainer thường phản hồi trong vòng 6 ngày
-
go-vulnerability security-scan
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
teslashibe/agent-go#36 ·
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
nwverse/persona#15194 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug flaky-test
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
rosskukulinski/tailworks#411 ·
Maintainer thường phản hồi trong vòng 1 ngày