> 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" %}
リポジトリスキャンは **早期アクセス中です** で、まもなく提供開始予定です。もしまだ **リポジトリ** Code Qualityのタブがまだ表示されない場合は、 **Intercom チャット** 右下隅の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
* 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.
