File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ * -local.mdc
Original file line number Diff line number Diff line change 1+ ---
2+ description:
3+ alwaysApply: true
4+ enabled: true
5+ updatedAt: 2025-12-24T06:44:49.679Z
6+ provider:
7+ ---
8+
9+
10+ # 公共规则
11+ ## 注意事项
12+ - 找代码不要找$env:USERPROFILE和%USERPROFILE%里的东西
13+ - 当前编辑器是windows环境
14+ - 要访问中国里国外网络要注意配置代理http://localhost_alpine:8899
15+ - 要访问github.com要注意配置代理https://ghproxy.com/https://github.com/
16+
17+ # 对话中计划
18+ - 作者官网: https://github.com/aogg
19+ - 不要用cmd /c执行命令
20+
21+
22+ ## 文件组织
23+ - 每个功能模块保持单一职责
24+ - main入口文件, 其他文件放src去
25+ - 工具代码放/app/Helpers文件夹,文件名后缀要helper
26+ - 配置文件放到/config文件夹
27+ - 测试文件放/test
28+ - 代码生成文件放/runtime
29+ - 每次新增代码都要判断哪些代码是可写成helper类的,哪些不行
30+
31+
32+ ## 响应语言+
33+ - 所有回复和注释使用简体中文
34+ - 代码注释使用中文
35+ - 用户界面文本使用中文
36+
37+ ## 代码审查要点
38+ - 检查是否有未使用的参数或变量
39+ - 确保所有配置项都有合理的默认值
40+ - 验证通配符匹配逻辑的正确性
41+ - 确保高亮效果明显可见
42+
Original file line number Diff line number Diff line change 1+ ---
2+ description:
3+ globs:
4+ alwaysApply: true
5+ ---
6+
7+
8+ # hyperf注意
9+ - 日志记录必须使用hyperf/logger
10+
You can’t perform that action at this time.
0 commit comments