> 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/code-quality-overview.md).

# コード品質の概要

PR、リポジトリ全体のスキャン、CI からのテストカバレッジに対する AI 搭載のコード品質チェック。

<table data-view="cards"><thead><tr><th>セクション</th><th>何が見つかるか</th><th data-hidden data-card-target data-type="content-ref">対象</th></tr></thead><tbody><tr><td><strong>PRチェックを設定</strong></td><td>〜に対する品質チェック <strong>新しいコード</strong>: すべてのプルリクエストで変更された行をスキャンします。</td><td><a href="/docs/docs-ja/kdo/code-quality-setup.md">PRでのコード品質</a></td></tr><tr><td><strong>リポジトリスキャン</strong></td><td>〜に対する品質チェック <strong>既存のコード</strong>: リポジトリ全体のスコア、検出結果、ホットスポット。</td><td><a href="/docs/docs-ja/kdo/repository-scans.md">コード品質のリポジトリスキャン</a></td></tr><tr><td><strong>コードカバレッジ</strong></td><td>CIからカバレッジレポートをアップロードし、リポジトリごと・ファイルごとにカバレッジを追跡します。</td><td><a href="/docs/docs-ja/kdo/code-coverage.md">コードカバレッジ</a></td></tr><tr><td><strong>カスタムコードルールを追加</strong></td><td>デフォルトを超えて、チーム固有のチェックを定義します。</td><td><a href="/docs/docs-ja/kdo/add-custom-code-rules.md">カスタムコードルールを追加する</a></td></tr><tr><td><strong>追加のコードコンテキストを追加</strong></td><td>Aikido に、コードベースと規約に関する背景情報を与えます。</td><td><a href="/docs/docs-ja/kdo/add-extra-code-context.md">追加のコードコンテキストを追加する</a></td></tr><tr><td><strong>特定の行を無視</strong></td><td>確認して受け入れた行の検出結果を非表示にします。</td><td><a href="/docs/docs-ja/kdo/ignoring-specific-lines.md">特定の行を無視する</a></td></tr></tbody></table>

## Code Qualityとは？

Code Quality は、〜全体で高い基準を維持するのに役立ちます **新しいコード** あなたがリリースするコードと、 **既存のコード** すでにリポジトリにあるコード。

これは、以下に対する品質版です [SAST](/docs/docs-ja/kdosukyan/scanning-practices/sast-by-aikido-supported-languages-and-security-focus.md): 有効にすると、追加する新しいコードをチェックします。これは [ディープレビュー](/docs/docs-ja/deep-review/how-deep-review-works.md). Deep Review は **セキュリティと品質の両方**、変更された行を超えたコンテキストも含めてカバーします。

Aikido は、チームで有効化したルールに対してAIを活用したチェックを適用します。検出結果には平易な説明と修正ガイダンスが含まれるため、開発者はセキュリティの専門家でなくても対応できます。

## 仕組み

Code Quality は次のモードに分かれます：

<table><thead><tr><th width="188.30859375">モード</th><th>内容</th></tr></thead><tbody><tr><td><a href="/docs/docs-ja/kdo/code-quality-setup.md"><strong>PRチェック</strong></a></td><td><strong>新しいコード：</strong> プルリクエストで追加または変更された行</td></tr><tr><td><a href="/docs/docs-ja/kdo/repository-scans.md"><strong>リポジトリスキャン</strong></a></td><td><strong>既存のコード：</strong> 現在の全コードベース</td></tr><tr><td><a href="/docs/docs-ja/kdo/code-coverage.md"><strong>コードカバレッジ</strong></a></td><td><strong>テストカバレッジ：</strong> CIからアップロードされたレポート</td></tr></tbody></table>

どちらか一方の品質モードだけを使うことも、両方を併用することもできます。PRチェックは品質の悪化を防ぎます。リポジトリスキャンでは、すでに存在するものと、クリーンアップを優先すべき箇所がわかります。 [コードカバレッジ](/docs/docs-ja/kdo/code-coverage.md) そのコードのうち、実際にテストでどれだけ実行されているかを確認できます。

### 新しいコード向けのPRチェック

すべてのプルリクエストで、Aikido は変更した行だけをスキャンし、インラインコメントを残します（または、設定に応じてゲートを失敗させます）。これにより、マージ前に回帰を検出し、新しい変更を基準に沿わせ続けられます。

参照 [PRチェックを設定](/docs/docs-ja/kdo/code-quality-setup.md) セットアップの全手順については

### 既存コード向けのリポジトリスキャン

全コードベースのスキャンでは、各リポジトリを4つの品質カテゴリでスコアリングし、すでにマージ済みのコードにある未解決の検出結果をすべて一覧表示し、高い変更頻度と低い品質が重なるホットスポットを強調します。

参照 [リポジトリスキャン](/docs/docs-ja/kdo/repository-scans.md) セットアップ、料金、結果の読み方については

## ユースケース

* **レビュー時に新しいコードを保護：** 変更された行に対するPRチェック、必要に応じてゲート失敗
* **既存コードの健全性を把握：** リポジトリごとの全コードベースにわたるカテゴリ別スコア
* **レガシーのクリーンアップを優先：** 頻繁に変更されるファイルに最も負債が集中している散布図のホットスポット
* **チーム標準を徹底：** あなたの規約に合わせたカスタムルールとコードコンテキスト
* **両方のレイヤーをカバー：** すべてのマージでPRチェックを実施。年間サブスクリプション期間中は段階的な再スキャン付きのリポジトリスキャンを実行
* **テストカバレッジを追跡：** CIからカバレッジをアップロードし、リポジトリ・ファイル・行ごとに確認

## 対応言語

Code Quality は、幅広く成長中の言語とフレームワークをサポートしています。全一覧は下をクリックしてください。

{% hint style="info" %}
一覧にない言語ですか？Intercomでご連絡ください。追加できるか確認します。
{% endhint %}

<details>

<summary>対応言語</summary>

* ABAP (SAP)
* angular
* Ansible
* Apex (Salesforce)
* C/C++
* C#
* Clojure
* COBOL
* ColdFusion
* Dart
* Delphi
* Elixir
* Erlang
* Go
* Groovy
* Haskell
* Java
* JS
* JSON
* Julia
* Kotlin
* Kubernetes / Helm charts
* Lua
* MySQL
* OCaml
* OpenEdge
* Pascal
* perl
* PHP
* PL/SQL
* PowerShell
* PY
* R
* react
* Ruby
* Rust
* Scala
* shell
* Solidity
* SQL
* svelte
* Swift/Objective-C
* Terraform
* TS
* Visual Basic
* vue
* YAML
* Zig

</details>

〜を使って検出結果を無視する場合は `.aikido` リポジトリ内の設定ファイルについては、 [Aikido Files を使った Code による無視](/docs/docs-ja/kdosukyan/scanning-practices/ignore-via-code-with-aikido-files.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/code-quality-overview.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.
