> ## 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 会过滤哪些发现真正被发布:

* **Minimum severity to post** —— 只发布达到或高于阈值的建议(默认:Medium)。Kody 仍然会发现较低严重性的问题,只是不会对其发表评论。
* **Apply the threshold to Kody Rules** —— 默认关闭,让团队自己的规则始终出现

在侧边栏的 **Code review → What to review**(原 **Review filters**)中或在 `kodus-config.yml` 中配置:

```yaml theme={null}
suggestionControl:
  severityLevelFilter: medium   # low | medium | high | critical
  applyFiltersToKodyRules: false
```

只有在 **Code review → General** 中(代码库或目录范围)开启了 **kodus Config File Overrides Web Preferences** 时,本页中的 `kodus-config.yml` 片段才会对该代码库生效。

## 忽略文件和路径

跳过产生噪音的文件（锁定文件、生成的代码、配置）。在 **Code review → General** 的 **Ignored files** 下添加它们，或在 `kodus-config.yml` 中配置：

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

## 按标题跳过 PR

跳过不需要审查的 PR（发布、版本升级）。在 **Code review → General** 的 **Ignore title keywords** 下添加关键词，或在 `kodus-config.yml` 中配置：

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

## 切换分析类别

使用 **Code review → What to review** 中的 **Bug**、**Performance**、**Security** 和 **Business Logic** 开关禁用您不需要的审查类别，或在 `kodus-config.yml` 中配置：

```yaml theme={null}
reviewOptions:
  bug: true
  security: true
  performance: false        # 噪音过多时可关闭
  business_logic: false     # 不相关时可关闭
```

## 审查节奏

使用 **Auto-pause**（**Code review → General** → **Enable Automated Code Review** → **Review Cadence**）防止活跃开发期间的垃圾信息 — 当 Kodus 检测到快速连续推送时暂停审查（默认：15 分钟内 3 次推送）。

更多详情，请参阅[通用配置](/zh/how_to_use/code_review/configs/general)和[严重性阈值](/zh/how_to_use/code_review/configs/suggestion_control)。


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.