> For the complete documentation index, see [llms.txt](https://help.aikido.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.aikido.dev/docs/docs-ja/kdo/repository-scans.md).

# コード品質のリポジトリスキャン

{% hint style="info" %}
リポジトリスキャンは **早期アクセス版です** まもなく順次提供されます。まだ **リポジトリ** Code Quality の下にそのタブが表示されない場合は、チャットでお問い合わせください。
{% endhint %}

リポジトリスキャンでは、リポジトリ全体に既に存在するコード品質の問題が表示されます。これらを使って技術的負債を見つけて優先順位を付け、その後はコードの変更に合わせて結果を最新に保ちます。

〜とは異なり [PRでのコード品質](/docs/docs-ja/kdo/code-quality-setup.md)、マージ前の新しいコードだけをチェックするのに対し、リポジトリスキャンは分析します **既存コード**。2つを併用して、既存の問題に取り組みながら、新たな品質上の負債がリポジトリに入るのを防ぎます。

## 機能

Aikidoがリポジトリをスキャンした後、次のことができます:

* 未解決の検出結果を次のカテゴリにグループ化して表示する **保守性**, **可読性**, **パフォーマンス**、そして **信頼性**
* 最初に対応が必要なカテゴリとファイルを優先順位付けする
* 未解決の検出結果が時間とともにどう変化するかを追跡する
* 使用 [AutoFix](/docs/docs-ja/autofix-to/overview-aikido-autofix.md) または自分で検出結果を修正する

<figure><img src="/files/2c54c8f8bd92ae2686e43f79001b1d12571f5531" alt="Code Quality Repositories tab showing category ratings and PR checks for each repository"><figcaption></figcaption></figure>

## スキャンを開始

リポジトリスキャンの設定については、 [リポジトリスキャンを開始](/docs/docs-ja/kdo/repository-scans/start-a-repository-scan.md)。前提条件、年間クレジット消費量、およびリポジトリの追跡を開始する方法を説明しています。

## 結果を確認する

その **リポジトリ** タブでは、スキャンした各リポジトリに4つの品質カテゴリごとの評価と検出件数が表示されます。リポジトリを開くと、基になる検出結果、影響を受けるファイル、深刻度、推定修正時間を確認できます。

### 品質の変化を確認する

を開き、 **時間経過による傾向** タブで、リポジトリの未解決検出結果が週ごとにどう変化するかを確認できます。グラフは検出結果を深刻度別に分けて表示するため、重大、高、中、低優先度の品質上の負債が増えているのか減っているのかを把握できます。

<figure><img src="/files/f1e54ebf422178329d95bb61fdf016f4399b535b" alt="Trend Over Time chart showing open code quality findings by severity"><figcaption></figcaption></figure>

これを使って、クリーンアップ作業の影響を測定し、注意が必要な回帰を見つけます。

### ファイルのホットスポットを見つける

その **ファイル散布図** クリーンアップ作業の優先順位付けに役立ちます。右上のファイルがあなたのホットスポットです。これらは頻繁に変更され、未解決のコード品質の検出結果が多くあります。

<figure><img src="/files/aaf0092dba5e26ccdb5398602117560ccc5e5428" alt="File scatter plot showing PR activity and open code quality findings per file"><figcaption></figcaption></figure>

{% hint style="info" %}
ファイル散布図には、リポジトリスキャンと [PRでのコード品質](/docs/docs-ja/kdo/code-quality-setup.md) 同じリポジトリに対するPRチェックの両方が必要です。リポジトリスキャンは検出件数を提供し、PRチェックはアクティビティデータを提供します。
{% endhint %}

評価、検出結果、散布図の詳細については、 [リポジトリスキャン結果を理解する](/docs/docs-ja/kdo/repository-scans/understand-repository-scan-results.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.aikido.dev/docs/docs-ja/kdo/repository-scans.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
