Small text gaps left by runs compare, rules and fail_on_confidence

未關閉 適合新手
#135 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
2/5
預估耗時
1-3 小時
新手友好度
78/100
Issue 類型
文件
描述清晰度
描述清楚
活躍度
活躍
技術堆疊
go, markdown
領域
api, cli, documentation

研究方向

從 runs.go:49 的 runs bogus 提示和 rules.go:14 的 --format 旗標文字開始,接著與 runs.go:43 的模式比較。當清單中的每一項都已修正,且 go test ./internal/cli ./internal/mcp 通過時即完成;若說明輸出有變動,則執行 make demo-check。

由索引模型根據 Issue 內容生成。

描述

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

主要語言
Go
星號
0
分支
1
PR 合併指標
30 天內沒有已合併 PR

環境準備

在 Codespaces 中開啟

在瀏覽器裡用你自己的 GitHub 帳號啟動這個專案的開發容器。

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

TMHSDigital/Spackle 的其他 Issue

查看 TMHSDigital/Spackle 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。