mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-05-12 13:14:30 +08:00
- 重构 Godot source generator 的长方法与字符串比较逻辑,清理 GFramework.Godot.SourceGenerators 的 MA0051 和 MA0006 告警 - 更新 AutoRegisterExportedCollectionsGenerator 的注册解析阶段拆分,消除剩余的长方法告警 - 更新 AGENTS 与 analyzer-warning-reduction 跟踪文档,明确 warning 检查必须先 clean 再 build
2.5 KiB
2.5 KiB
Analyzer Warning Reduction 追踪
2026-04-24 — RP-050
阶段:clean-build 基线修正与 GFramework.Godot.SourceGenerators 切片清零
- 触发背景:
- 用户确认之前的
0 Warning(s)来自增量构建假阴性;只有先dotnet clean再dotnet build,warning 才会重新出现 - 用户给出 clean solution build 的真实结果:
Build succeeded with 1193 warning(s)
- 用户确认之前的
- 主线程实施:
- 纠正当前 topic 的 active todo / trace,把 clean build 作为新的 warning 检查真值
- 在
BindNodeSignalGenerator.cs、GetNodeGenerator.cs、GodotProjectMetadataGenerator.cs中完成分阶段方法抽取与字符串比较修正 - 在
Registration/AutoRegisterExportedCollectionsGenerator.cs中拆分TryCreateRegistration,清除最后一个MA0051 - 更新
AGENTS.md,明确 warning 检查必须先dotnet clean再dotnet build
- 验证里程碑:
dotnet clean GFramework.Godot.SourceGenerators/GFramework.Godot.SourceGenerators.csproj -c Release- 结果:成功;
0 Warning(s)、0 Error(s)
- 结果:成功;
dotnet build GFramework.Godot.SourceGenerators/GFramework.Godot.SourceGenerators.csproj -c Release- 首次验证:成功;
1 Warning(s),剩余Registration/AutoRegisterExportedCollectionsGenerator.cs(182,25)MA0051 - 修复后复验:成功;
0 Warning(s)、0 Error(s)
- 首次验证:成功;
- 当前结论:
GFramework.Godot.SourceGenerators已在 cleanReleasebuild 下从 9 个 warning 降到 0 个 warning- 整仓库 warning 基线仍以用户确认的 clean solution build
1193 warning(s)为准 - 下一轮应继续从 clean solution build 输出中选择新的低风险热点
Archive Context
- 当前轮次归档:
- 历史跟踪归档:
- 历史 trace 归档: