> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kodus.io/llms.txt
> Use this file to discover all available pages before exploring further.

# 如何减少代码审查噪音和误报

> 调整 AI 代码审查，仅显示最相关的建议，避免警报疲劳。

过多的低优先级建议会让开发者完全忽略代码审查反馈。关键是调整审查，使其显示重要的内容，对不重要的保持安静。

## 建议控制

Kodus 为您提供对建议数量和严重性的精细控制：

* **每个 PR 的最大建议数** — 限制建议总数（例如 9 个）
* **严重性过滤器** — 仅显示达到或超过阈值的建议（例如中等及以上）
* **分组模式** — 控制建议在 PR 中的组织方式

在**代码审查设置** → **建议控制**中配置，或在 `kodus-config.yml` 中：

```yaml theme={null}
suggestionControl:
  groupingMode: full
  limitationType: pr
  maxSuggestions: 9
  severityLevelFilter: medium
```

## 忽略文件和路径

跳过产生噪音的文件（锁定文件、生成的代码、配置）：

```yaml theme={null}
ignorePaths:
  - yarn.lock
  - package-lock.json
  - "**/*.generated.ts"
  - dist/**
```

## 按标题跳过 PR

跳过不需要审查的 PR（发布、版本升级）：

```yaml theme={null}
ignoredTitleKeywords:
  - "release"
  - "bump version"
  - "chore"
```

## 切换分析类别

禁用您不需要的审查类别：

```yaml theme={null}
reviewOptions:
  security: true
  code_style: true
  refactoring: false
  documentation_and_comments: false
```

## 审查节奏

使用**自动暂停**防止活跃开发期间的垃圾信息 — 当 Kodus 检测到快速连续推送时暂停审查（默认：15 分钟内 3 次推送）。

更多详情，请参阅[通用配置](/how_to_use/en/code_review/configs/general)和[建议控制](/how_to_use/en/code_review/configs/suggestion_control)。
