From bf983833c8b75a549f1d4702308013fff72292ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B4=94=E9=B2=81=E6=AD=A3?= <13780741225@163.com> Date: Thu, 10 Sep 2026 10:22:21 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E8=B1=81=E5=85=8D=E8=AE=BE=E8=AE=A1?= =?UTF-8?q?=E7=B3=BB=E7=BB=9F=20token=20=E7=9A=84=E5=91=BD=E5=90=8D?= =?UTF-8?q?=E7=BA=A6=E6=9D=9F=EF=BC=88R10=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- superpowers/plans/2026-09-10-ring-health-app-m0-m1.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/superpowers/plans/2026-09-10-ring-health-app-m0-m1.md b/superpowers/plans/2026-09-10-ring-health-app-m0-m1.md index 58e3a03..6edee98 100644 --- a/superpowers/plans/2026-09-10-ring-health-app-m0-m1.md +++ b/superpowers/plans/2026-09-10-ring-health-app-m0-m1.md @@ -19,7 +19,11 @@ - **依赖约束**:阶段一**不引入** Hilt、Room、Retrofit、第三方图表库。图表一律用 Compose `Canvas` 手绘。 - **不硬编码文案**:所有用户可见文字进 `res/values/strings.xml`(默认中文)。 - **禁止行内样式散落**:颜色/字号统一定义在 `core/designsystem/`,页面不得直接写 `Color(0xFF...)`。 -- **命名规范**:类/Composable 用 PascalCase;函数/变量用 camelCase;常量用 UPPER_SNAKE_CASE;资源文件用 kebab-case/snake_case。 +- **命名规范**:类/Composable 用 PascalCase;函数/变量用 camelCase;资源文件用 kebab-case/snake_case。 + `const val` 编译期常量用 UPPER_SNAKE_CASE。 + **例外**:`core/designsystem/` 里的设计 token(`BrandGreen`、`MetricRed`、`AppBackground`、 + `MetricValueStyle` 等)一律用 PascalCase —— 它们是 Compose 惯用的公开设计 token,不是 `const val`, + 且 Tasks 3–12 的组件与页面都按这些确切名字引用,改名会破坏接口契约。此例外即本约束的一部分。 - **注释规范**:每个类与公开函数上方写中文 KDoc,说明用途(团队规范要求)。 - **提交规范**:每个 Task 结束提交一次;提交信息用中文,前缀 `feat:` / `chore:` / `test:` / `docs:`。 - **Gitea 地址**:`http://120.192.101.56:3000/cuiluzheng/.git`(凭据助手已按主机配置好,可直接推送)。