job51-gitlab-cr-node-jt-1 2.3.2 → 2.3.3
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.
|
@@ -66,6 +66,10 @@
|
|
|
66
66
|
> - **错误处理**:如果某些上下文文件不存在或无法读取,跳过并继续审查
|
|
67
67
|
|
|
68
68
|
> - **⚠️ 代码上下文深度分析要求(强制执行)**:
|
|
69
|
+
> - **必须读取完整方法上下文**:
|
|
70
|
+
> - 审查前必须使用 Read 工具读取**整个方法**的代码,不只是 diff 块
|
|
71
|
+
> - 分析方法开始处是否有判空保护、早期返回、断言等逻辑
|
|
72
|
+
> - 示例:方法开头有 `if (accountInfo == null) return;`,后续 `accountInfo.getXxx()` **不应报告 NPE**
|
|
69
73
|
> - **必须跨 diff 块分析同一文件/方法的上下文**:
|
|
70
74
|
> - 同一个文件/方法可能被拆分成多个 diff 块,**必须合并所有块一起分析**
|
|
71
75
|
> - 示例:块 A 显示删除了 `obj.setValue(xxx)`,块 B 显示新增了 `if(condition) obj.setValue(yyy)`
|