> 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/ignoring-specific-lines.md).

# 特定の行を無視する

Aikido Code Quality では、抑制コメントを付けると特定の行をスキップできます。これは、ルールが当てはまらない場合や、例外が意図的な場合に便利です。

## これは何か（そして何ではないか）

* **該当するもの**：Aikido に 1 行のコードを無視させるための正確な方法。
* **該当しないもの**：問題を修正する代わりでも、全体をミュートするものでもありません。Aikido の他のスキャナー（セキュリティ、シークレット、サプライチェーン）には影響しません。以下の無視パターンを確認してください [コードスキャン](/docs/docs-ja/kdosukyan/scanning-practices/ignore-via-code-with-aikido-files.md) と [シークレット検出](/docs/docs-ja/kdosukyan/scanning-practices/ignoring-secrets-via-code-comments.md).

## 抑制を使うタイミング

正当な使用例には次のようなものがあります：

* 変更できないサードパーティ製コードや生成コード。
* スタイルルールを意図的に破る互換性用のシム／ポリフィル。
* 安全だと確認済みの誤検知。
* 通常のコードでは警告を引き起こすパターンを含むテスト。

{% hint style="warning" %}
抑制を使って実際の問題を隠したり、低品質なコードをごまかすための近道にしたりしないでください。
{% endhint %}

## 仕組み

コメントに次のいずれかのキーワードが含まれている場合、Aikido はその行を無視します：

* `NOAIKIDO`
* `NO-AIKIDO`

詳細：

* このチェックは大文字小文字を区別しません（noaikido、No-Aikido など、すべて有効です）。
* マーカーは **同じ行またはその上** にある必要があります。
* マーカーの後ろに、人間向けの説明を追加できます。

## 例

#### Python

```python
def compare(user_id, other_id):
    # NOAIKIDO: ここでは単純な等価比較で問題ありません
    return user_id == other_id 
```

#### JavaScript

```javascript
const tmp = eval(userInput); // no-aikido: テストではサンドボックス化されています
```

#### Go

```go
// NOAIKIDO 一時的なデバッグ
fmt.Println("Debug mode enabled") 
```

#### Java

```java
List raw = new ArrayList(); // no-aikido: レガシー相互運用
```


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.aikido.dev/docs/docs-ja/kdo/ignoring-specific-lines.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
