🎨 style(markdown): format markdown files
This commit is contained in:
@@ -24,19 +24,23 @@ description:
|
||||
## Procedure(default)
|
||||
|
||||
1. **Baseline**
|
||||
|
||||
- 确保工作区干净:`git status --porcelain`
|
||||
- 跑一个基线验证(至少 build 或核心测试子集),避免“本来就坏”
|
||||
|
||||
2. **Enumerate**
|
||||
|
||||
- 先搜索再改:用 `rg`/`git grep` 列出全部命中
|
||||
- 分类命中:真实调用 vs 注释/文档/样例;避免误改
|
||||
|
||||
3. **Apply Mechanical Change**
|
||||
|
||||
- 优先使用确定性的机械变换(脚本/结构化编辑)而非手工逐个改
|
||||
- 每轮改动后立即做小验证(编译/单测子集)
|
||||
- 复杂迁移优先“两阶段”:先兼容旧接口(deprecated),再清理旧接口
|
||||
|
||||
4. **Format & Lint(按项目约定)**
|
||||
|
||||
- 仅在确认“会破坏 diff 可读性”前提下分批格式化(避免把重构和格式揉在一起)
|
||||
|
||||
5. **Verify & Report**
|
||||
|
||||
Reference in New Issue
Block a user