mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-05-06 16:16:44 +08:00
chore(build): 添加 C# 命名规范验证脚本
- 实现了 PascalCase 命名规则检查功能 - 集成了 Git 文件遍历和 grep 文本匹配 - 支持排除特定目录如 Godot 模板和测试快照 - 验证命名空间和目录路径的大小写规范 - 提供详细的违规信息报告和错误定位 - 包含字母数字字符和缩写命名规则校验
This commit is contained in:
parent
9ec83fa56a
commit
57a006caeb
@ -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
|
||||
;;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user