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