mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-03 23:06:36 +08:00
ci(arch): forbid pkg packages from depending on project core packages
This commit is contained in:
@@ -88,7 +88,7 @@ Strong success criteria let you loop independently. Weak criteria ("make it work
|
||||
## 严格遵循事项 (Guardrails)
|
||||
|
||||
- 切勿删除 `frontend/node_modules`。
|
||||
- 保持 `backend/pkg/util/` 绝对纯净,禁止导入 Gin、GORM、sessions 等 Web/数据库框架包。
|
||||
- 保持 `backend/pkg/` 绝对纯净,属于底层通用基础库,**严禁依赖项目上层包(如 `Wavelet/core/*`、`Wavelet/plugins/*`)**;保持 `backend/pkg/util/` 绝对纯净无状态,禁止导入 Gin、GORM、sessions 等 Web/数据库框架包。
|
||||
- 测试用例禁止硬编码相对路径创建临时目录,统一使用 Go 内置 `t.TempDir()`。
|
||||
- 修改 API Handler 后运行 `make swagger`,完成代码开发后必须依次运行 `make code-check` 与 `make format`。
|
||||
|
||||
|
||||
Reference in New Issue
Block a user