job51-gitlab-cr-node-jt-1 2.8.8 → 2.8.9
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.
|
@@ -19,6 +19,13 @@
|
|
|
19
19
|
1. **审查范围限制**(关键规则):
|
|
20
20
|
> - **只审查当前 diff 块内的新增代码**(+ 开头的行)
|
|
21
21
|
> - **只报告当前 diff 块内能直接发现的问题**
|
|
22
|
+
> - **⚠️ 禁止对上下文行(空格开头的行)报告问题**:
|
|
23
|
+
> - 上下文行是未变更的代码,不在本次审查范围内
|
|
24
|
+
> - GitLab无法为上下文行创建有效的diff评论定位(line_code错误)
|
|
25
|
+
> - 即使上下文行看起来有问题,也不应报告,因为不在当前变更范围内
|
|
26
|
+
> - **⚠️ 问题行号必须指向新增代码行**(+ 开头的行):
|
|
27
|
+
> - LINE_INFO中的行号必须是实际新增或修改的行
|
|
28
|
+
> - 禁止对上下文行(空格开头)或删除行(-开头)报告问题
|
|
22
29
|
> - **不要追踪方法调用链去其他文件中报告问题**(如"XX 方法返回 null,导致其他地方空指针")
|
|
23
30
|
> - 可以分析方法返回值是否可能为 null,但**问题只能报告在当前调用处**
|
|
24
31
|
|