Small text gaps left by runs compare, rules and fail_on_confidence

Offen Anfängerfreundlich
#135 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Anfängerfreundlichkeit
78/100
Issue-Typ
Dokumentation
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Tech-Stack
go, markdown
Bereich
api, cli, documentation

Rechercherichtung

Beginne mit dem Hinweis runs bogus in runs.go:49 und dem Text des Flags --format in rules.go:14 und vergleiche sie dann mit dem Muster in runs.go:43. Fertig ist es, wenn jeder Checklistenpunkt behoben ist und go test ./internal/cli ./internal/mcp durchläuft. Falls sich die Hilfeausgabe ändert, wird außerdem make demo-check ausgeführt.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

documentation good first issue severity: low

Summary

A few small text gaps were left by the new runs compare, rules and fail_on_confidence features. Grouped here as a checklist.

Where

  • internal/cli/runs.go:49
  • internal/cli/rules.go:14
  • internal/cli/runs.go:137-161
  • docs/mcp.md:33
  • docs/findings.md:172, docs/findings.md:177
  • internal/mcp/tools.go:41-44

Details

  • internal/cli/runs.go:49: spackle runs bogus prints Use "spackle runs" to list or "spackle runs prune" to delete. It does not mention runs compare, which the same command's help lists.
  • internal/cli/rules.go:14: fs.String("format", "text", " + "text" + or json") makes the backticked word the placeholder, so help shows --format text text or json. Other commands read --format format output format: text or json (for example runs.go:43).
  • internal/cli/runs.go:137-161: commit 96cc9fc inserted countFlag between parseAge's doc comment and the function. countFlag now has a two-subject doc, and parseAge has none.
  • docs/mcp.md:33: "scan, list_runs and doctor send the same JSON in both" leaves out compare_runs, which also returns jsonResult.
  • docs/findings.md:172 and :177 ("Only open and patch-available findings count toward fail_on") do not mention that fail_on_confidence can exclude findings below a confidence level. docs/config.md and docs/ci.md do.
  • internal/mcp/tools.go:41-44: the MCP instructions string names only scan, get_report and get_finding, not list_runs, compare_runs or doctor.

Impact

Minor. A user reading the hint, the help, godoc or the docs gets an incomplete picture of the new options.

Suggested fix

Fix each item as described above.

Acceptance criteria

  • Every item in the checklist is fixed.

Getting started

  • Relevant files: listed above
  • How to run tests: go test ./internal/cli ./internal/mcp; make demo-check if help output appears in docs

Filed by repo-audit/full-audit at fffef43. Severity: low. Effort: S. audit-key: documentation|internal/cli/runs.go|new-feature-text-gaps

Vorherrschende Sprache
Go
Sterne
0
Forks
1
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Entwicklungsumgebung

In Codespaces öffnen

Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus TMHSDigital/Spackle

Alle Issues in TMHSDigital/Spackle

Ähnliche Issues

Weitere Issues zu Go

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.