您的 Bug 评审人员询问
“这会坏吗?”
逻辑错误、回归和边缘情况。
错误审阅者寻找缺陷。Weave Checks 针对每个拉取请求运行您团队的 Markdown 规则。
保留您的 Bug 审查员以处理缺陷。使用 Weave 检查(Checks)来执行特定于您代码库的规则。
您的 Bug 评审人员询问
逻辑错误、回归和边缘情况。
Weave 检查请求
它会标记模糊的名称、死代码以及未对代码进行测试的测试用例。
标记那些重申代码已说明内容的注释。解释决策、约束或令人惊讶之处的注释是可以的。
Flagged: // Get the user's full nameexport function getFullName(user: User) { return `${user.first} ${user.last}`;}此注释重申了函数名称。请将其删除,或替换为代码无法告诉读者的内容。
// Get the user's full name
export function getFullName(user: User) {
return `${user.first} ${user.last}`;
}- // Get the user's full name
export function getFullName(user: User) {
return `${user.first} ${user.last}`;
}export function getFullName(user: User) {
return `${user.first} ${user.last}`;
}Frontmatter 设置名称和模型层级。其余部分是描述要标记内容的纯英语。Checks 会根据它审查每个差异,并对任何违反规则的内容进行评论。
---
name: Documentation Signal
description: Flags comments that repeat the code
intelligence: low
---
## What to look for
Comments that restate what the next line does.
## What not to flag
- Comments that explain a constraint or workaround
- Comments that explain why a decision was made
- Links to issues or specs挑选你最常留下的审查评论,并将其写下来作为检查项。