Files
Kymo/CONTRIBUTING.md
T
wangairnan 06ee117f86 docs(project): 新增文档体系与仓库说明文件
- 新增 docs/ 文档目录:文档索引、架构设计、监控指标与系统 API 方案、
  开发指南、版本路线图
- 编写 README:项目简介、功能规划、目录结构与快速开始
- 添加 CONTRIBUTING 提交规范、CHANGELOG 变更记录与 MIT LICENSE
2026-10-29 16:33:50 +08:00

47 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 贡献指南
## 提交规范
提交信息遵循 [Conventional Commits](https://www.conventionalcommits.org/zh-hans/),描述统一使用中文:
```
<type>(<scope>): <中文描述>
```
### type 说明
| type | 用途 |
| --- | --- |
| `feat` | 新功能 |
| `fix` | 缺陷修复 |
| `docs` | 文档变更 |
| `style` | 代码格式调整(不影响逻辑) |
| `refactor` | 重构(既非新增也非修复) |
| `perf` | 性能优化 |
| `test` | 测试相关 |
| `chore` | 构建 / 工程配置等杂项 |
### scope 建议
`app`、`monitors`、`menubar`、`dashboard`、`settings`、`ui`、`docs`、`project`
### 示例
```
feat(monitors): 新增 CPU 占用率采样器
fix(menubar): 修复菜单栏文本高刷新率下抖动
docs(architecture): 补充数据流时序说明
```
## 分支规范
- `main` 为主干分支,保持可构建状态;
- 功能开发使用 `feature/xxx`,缺陷修复使用 `fix/xxx`;
- 合入前确保:代码可编译、相关文档已同步更新。
## 代码风格
- Swift 代码 4 空格缩进,遵循 Swift 官方 API 设计指南;
- 目录归属:业务视图进 `Features/`,通用能力进 `Core/` 与 `UI/`;
- 与 UI 无关的逻辑不放进视图,保证可测试性。