declscope-authoring - 在 declscope 规则下编写 Go 代码
指导在使用 declscope 的仓库中添加、命名、移动、拆分和测试 Go 声明。
标签
更新于: 2026-11-29该技能可以做什么
- 按职责放置声明
- 应用命名空间和作用域规则
- 准确命名声明
- 处理 declscope 诊断
- 管理有基线的包
- 完整重构代码
- 避免隐藏报告
输入
- Go 仓库
- declscope 配置
- declscope 基线
- 代码变更请求
- declscope 诊断结果
输出
- 修改后的 Go 文件
- 更新后的指令
- 重命名或移动的声明
- declscope 检查结果
- 重构请求
要求
- 使用 declscope 的 Go 仓库
- declscope 0.26.0
- 可执行 declscope 命令
- 修改仓库文件的权限
