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

# コード品質概要

<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="/pages/ef16a8d428bc46cb3d66f6d2a6800414ff4636da">/pages/ef16a8d428bc46cb3d66f6d2a6800414ff4636da</a></td></tr><tr><td><strong>リポジトリスキャン</strong></td><td>品質チェック対象 <strong>既存コード</strong> — リポジトリ全体のスコア、検出結果、ホットスポット。</td><td><a href="/pages/b3ff19899b1f11cbee9c7396eac4614e08b16304">/pages/b3ff19899b1f11cbee9c7396eac4614e08b16304</a></td></tr><tr><td><strong>カスタムコードルールを追加</strong></td><td>— デフォルトを超えて、チーム固有のチェックを定義できます。</td><td><a href="/pages/d63f46f1ae964210f7b510e0b977a013c207fdd8">/pages/d63f46f1ae964210f7b510e0b977a013c207fdd8</a></td></tr><tr><td><strong>追加のコードコンテキストを追加</strong></td><td>Aikidoにコードベースと規約に関する背景情報を与えます。</td><td><a href="/pages/ffe10c8b2bc70f102ba9fe580ff50b32dfda8ebc">/pages/ffe10c8b2bc70f102ba9fe580ff50b32dfda8ebc</a></td></tr><tr><td><strong>特定の行を無視</strong></td><td>確認して受け入れた行の検出結果を非表示にします。</td><td><a href="/pages/b00d64536f4e9fe880530d543c06427e13a7a9a7">/pages/b00d64536f4e9fe880530d543c06427e13a7a9a7</a></td></tr></tbody></table>

## コード品質とは？

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

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

## 仕組み

コード品質は明確に2つのモードに分かれます：

<table><thead><tr><th width="188.30859375">モード</th><th>対象内容</th></tr></thead><tbody><tr><td><a href="/pages/ef16a8d428bc46cb3d66f6d2a6800414ff4636da"><strong>PRチェック</strong></a></td><td><strong>新しいコード</strong> — プルリクエストで追加または変更された行</td></tr><tr><td><a href="/pages/b3ff19899b1f11cbee9c7396eac4614e08b16304"><strong>リポジトリスキャン</strong></a></td><td><strong>既存のコード</strong> — 現在のコードベース全体</td></tr></tbody></table>

どちらのモードも単独で使うことも、両方を組み合わせて使うこともできます。PRチェックは品質の悪化を防ぎ、リポジトリスキャンはすでに存在するものと、どこを優先してクリーンアップすべきかを示します。

### PRチェック — 新しいコード

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

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

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

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

{% hint style="info" %}
リポジトリスキャンは **早期アクセス版です** まもなく順次提供されます。まだ **リポジトリ** まだ［コード品質］タブがない場合は、 **Intercomチャット** 右下隅のものを開いてください — 当チームがワークスペースで早期アクセスを有効にできます。
{% endhint %}

参照: [リポジトリスキャン](/docs/docs-ja/kdo/repository-scans.md) セットアップ、価格、結果の読み方についてはこちらを開いてください。

## ユースケース

* **レビュー時に新しいコードを保護** — 変更された行に対するPRチェック（必要に応じてゲート失敗も可）
* **既存コードの健全性を把握** — リポジトリごとのコードベース全体にわたるカテゴリスコア
* **レガシーのクリーンアップを優先** — 頻繁に変更されるファイルほど負債が大きい箇所を示す散布図のホットスポット
* **チーム標準を強制** — あなたの規約に合わせたカスタムルールとコードコンテキスト
* **両方の層をカバー** — すべてのマージ時のPRチェック。年間サブスクリプション期間中の増分再スキャンを伴うリポジトリスキャン

## 対応言語

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
* JavaScript
* JSON
* Julia
* Kotlin
* Kubernetes / Helmチャート
* Lua
* MySQL
* OCaml
* OpenEdge
* Pascal
* Perl
* PHP
* PL/SQL
* PowerShell
* Python
* R
* React
* Ruby
* Rust
* Scala
* シェル
* Solidity
* SQL
* Svelte
* Swift/Objective-C
* Terraform
* TypeScript
* Visual Basic
* Vue
* YAML
* Zig

</details>

検出結果を〜経由で無視する場合は `.aikido` リポジトリ内の設定ファイルについては、次を参照してください： [Aikidoファイルで無視する](/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.
