Add --format json and --finding to spackle verify
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- Medio día
- Aptitud para principiantes
- 72/100
Línea de trabajo
Empieza en internal/cli/verify.go en runVerify (líneas 13-69), que solo registra flagsConfig|flagsOffline e imprime texto de ancho fijo por cada resultado. Reutiliza findingIDRe de internal/cli/report.go:70 para validar --finding y revisa cómo internal/engine/verify.go recibe las pruebas. Está terminado cuando verify --format json imprime un único documento JSON con todos los resultados, verify --finding <id> ejecuta solo las pruebas de ese hallazgo, un id desconocido es un error de uso y docs/config.md enumera las banderas.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- Go
- Estrellas
- 0
- Forks
- 1
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de TMHSDigital/Spackle
-
enhancement good first issue severity: low
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
TMHSDigital/Spackle#138 ·
-
documentation good first issue severity: low
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
TMHSDigital/Spackle#135 ·
-
bug good first issue severity: low
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
TMHSDigital/Spackle#131 ·
-
runs and runs compare print target text without the control-character cleaning the reports useAbiertobug good first issue severity: low
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
TMHSDigital/Spackle#129 ·
-
bug good first issue severity: low
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
TMHSDigital/Spackle#128 ·
Todos los issues de TMHSDigital/Spackle
Issues similares
-
bug raised-by:reviewer
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
medici-finance/assay#7655 ·
Los mantenedores suelen responder en 1 día
-
helm chart: make DaemonSet pod affinity configurable via values.yamlPosiblemente ocupada @Young-Zen la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
flannel-io/flannel#2632 ·
Los mantenedores suelen responder en 6 días
-
go-vulnerability security-scan
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
teslashibe/agent-go#36 ·
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
nwverse/persona#15194 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug flaky-test
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
rosskukulinski/tailworks#411 ·
Los mantenedores suelen responder en 1 día