Loading...
Loading...
Compare original and translation side by side
| Request | Command |
|---|---|
| "my changes", "uncommitted" | |
| "last commit", a commit hash | |
| a branch or PR | |
| a GitHub PR number or URL | |
| "this file", "this package" | Read the named files directly |
| 请求内容 | 命令 |
|---|---|
| "my changes"、"uncommitted" | |
| "last commit"、提交哈希值 | |
| 分支或PR | |
| GitHub PR编号或URL | |
| "this file"、"this package" | 直接读取指定文件 |
array.includesarray.includesreferences/go.mdreferences/typescript.mdreferences/go.mdreferences/typescript.mdundefinedundefinedpath/file.go:123path/file.go:123
Severity rules:
- **high** — hot path, measurable at current scale: quadratic algorithm over real data, N+1 query, per-request allocation storm, blocked event loop, unbounded goroutines or promises.
- **medium** — hot path but small constant factor, or a cold-path algorithmic problem that grows with data.
- **low** — real but minor; mention only when the fix is one line.
Cite line numbers from `grep -n` output, diff hunk headers, or a numbered read — never from memory. One wrong line number costs the whole review its credibility.
Order findings by severity. If there are no findings, say so plainly — no low-severity filler to look thorough.
严重程度规则:
- **high(高)** — 热路径,当前规模下可测量:真实数据上的二次复杂度算法、N+1查询、每次请求的内存分配风暴、阻塞事件循环、无界goroutine或promise。
- **medium(中)** — 热路径但常数因子小,或随数据增长的冷路径算法问题。
- **low(低)** — 真实存在但影响轻微;仅当修复只需一行代码时提及。
引用行号来自`grep -n`输出、diff块头或带编号的读取结果——切勿凭记忆填写。错误的行号会使整个审查失去可信度。
按严重程度排序问题。如果没有问题,请直接说明——不要为了显得全面而添加低严重程度的无关内容。