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 摘要。