> 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("デバッグモードが有効です") 
```

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