Skip to main content

update-vettedpositions

Update .vettedpositions after harmless line-number moves in goanalysis output.

跳到安装

来源信息

仓库
authgear/authgear-server
最近来源活动
2026年4月14日 09:56
检测到的 SKILL.md 语言
英语
星标
2,051
分支
124

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
update-vettedpositions
description
Update .vettedpositions after harmless line-number moves in goanalysis output.
argument-hint
<changed files or analysis output>
Use this skill only for line-number drift in vetted positions. ## Workflow 1. Run `go run ./devtools/goanalysis ./cmd/... ./pkg/...`. 2. For each reported item, check whether it is only a line-number move with no semantic change. 3. If it is a line-number move, update `.vettedpositions` to remove the old position and add the new one. 4. If it is a genuinely new warning, stop and report it instead of updating `.vettedpositions`. 5. Re-run `go run ./devtools/goanalysis ./cmd/... ./pkg/...`. 6. Run `make sort-vettedpositions`. 7. Commit the change with the message `Update .vettedpositions for changed line numbers`. ## Notes - Do not add new vetted positions for new issues. - Keep the file sorted by using the repo target, not by hand.
在 GitHub 查看