> 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).

# コード品質概要

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

<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>Code Coverage</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 は、全体にわたって高い基準を維持するのに役立ちます **新しいコード** あなたがリリースするコードと、そして **既存コード** すでにリポジトリにあるコードの。

これは、〜に対する品質面での対応機能です [SAST](/docs/docs-ja/kdosukyan/scanning-practices/sast-by-aikido-supported-languages-and-security-focus.md): 有効にすると、追加する新しいコードをチェックします。これは〜を置き換えるものではありません [ディープレビュー](/docs/docs-ja/reby/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>Code Coverage</strong></a></td><td><strong>テストカバレッジ:</strong> CI からアップロードされたレポート</td></tr></tbody></table>

どちらか一方の品質モードだけでも、両方を組み合わせても使えます。PR チェックは品質の悪化を防ぎ、リポジトリスキャンは既に存在するものと、どこをクリーンアップすべきかを示します。追加で [Code Coverage](/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 チャート
* Lua
* MySQL
* OCaml
* OpenEdge
* Pascal
* Perl
* PHP
* PL/SQL
* PowerShell
* PY
* R
* React
* Ruby
* Rust
* Scala
* シェル
* Solidity
* SQL
* Svelte
* Swift/Objective-C
* Terraform
* TS
* Visual Basic
* Vue
* YAML
* Zig

</details>

検出事項を〜経由で無視するには `.aikido` リポジトリ内の設定ファイルについては、こちらをご覧ください [Aikido Files のコード経由で無視](/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.
