chore(build): 添加 C# 命名规范验证脚本

- 实现了 PascalCase 命名规则检查功能
- 集成了 Git 文件遍历和 grep 文本匹配
- 支持排除特定目录如 Godot 模板和测试快照
- 验证命名空间和目录路径的大小写规范
- 提供详细的违规信息报告和错误定位
- 包含字母数字字符和缩写命名规则校验
This commit is contained in:
GeWuYou 2026-04-17 10:58:42 +08:00
parent 9ec83fa56a
commit 57a006caeb

View File

@ -28,6 +28,11 @@ is_excluded() {
Godot/script_templates|Godot/script_templates/*)
return 0
;;
GFramework.SourceGenerators.Tests/*/snapshots|GFramework.SourceGenerators.Tests/*/snapshots/*)
# Source-generator snapshots are committed test assets rather than hand-authored source layout.
# Keep naming enforcement for the real test code, but skip generated snapshot trees.
return 0
;;
*)
return 1
;;