@deepstorm/cli 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -33,6 +33,9 @@
33
33
  - 局部变量优先用 `var`,避免冗余的类型声明
34
34
  - 字符串格式化用 `formatted()` / Text Block,不用 `+` 拼接
35
35
  - 用多态 / Abstract Method 替代 `instanceof` 链做类型分发
36
+ - 所有控制流语句(`if`/`else`/`for`/`while`/`do`)必须使用大括号 `{}`,禁止省略大括号的单行体(对应 Checkstyle `NeedBraces` 规则)
37
+ - 不声明未被使用的局部变量;switch 模式匹配中未被使用的模式变量用 `_`(匿名模式变量)替代命名变量(如 `case UserMessage _ ->`)
38
+ - 局部变量声明必须靠近首次使用处(相距 ≤ 3 行);从方法调用返回值赋值的局部变量用 `final var` 修饰(如 `final var axisDimList = buildAxisDimMapping(...)`),禁止在调用前提前声明可变变量
36
39
 
37
40
  ### Lombok 使用规范
38
41
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepstorm/cli",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "DeepStorm CLI — 一键配置项目开发环境",
5
5
  "license": "MIT",
6
6
  "author": "billkang",