技術とテスト コア C · 業界の慣例 プラットフォーム: 一般

Lint

Lint

Lint はコードを実行せずにチェックします。潜在的なバグ、安全でないパターン、スタイルの問題、壊れたプロジェクトルールを見つけます。

仕組みを見る
そう呼ぶかもしれません Lintリンター静的解析コードルール

仕組みを見る

元の作業例Lint

もう一つの例

レビュー前に、lintはハンドルされていないPromise、アクセス不能な画像、サーバー専用モジュールからのインポートを検出します。

主な部分

  1. 01Code or behavior under test
  2. 02Observable evidence
  3. 03Coverage, failure, and recovery

以下の場合に使用します

エディターとCIで安定したルールを実行。自動修正は安全で予測可能な変更に制限してください。

以下の場合は使用しないでください

騒がしいルールを有効にしたり、リントをテストとして扱ったり、集中作業中に関係ないファイルを修正しないでください。

コードで使用する名前

AST rules + diagnostics + optional autofix

出荷前に

Check the environment and prepared test data (fixture). Define a result you can observe, failure and edge cases, isolation, stable inputs, useful error details, and cleanup. Set a time budget, owner, and flaky-test rule.

コピーできるリクエスト

Outcome:Complete the task with Lint (Lint)。 User context:レビュー前に、lintはハンドルされていないPromise、アクセス不能な画像、サーバー専用モジュールからのインポートを検出します。 Validation approach:Lint (Lint)。 Why it fits:エディターとCIで安定したルールを実行。自動修正は安全で予測可能な変更に制限してください。 Do not use it when:騒がしいルールを有効にしたり、リントをテストとして扱ったり、集中作業中に関係ないファイルを修正しないでください。 Test requirements: Name the system and test environment. Define prepared test data, other inputs, and the result you can observe. Include failure and edge cases, allowed error, isolation, and cleanup. Test operations: Make failures easy to diagnose. Control random or changing inputs. Name an owner. Keep the test fast and simple enough for its release gate. Acceptance criteria: The test fails for the known bug and passes after the fix. It repeats in the target environment, gives useful evidence, and does not expose or change unrelated data. Evidence and limits (evidence boundary):単一の公式標準が全体の用語を管理するわけではありません。その意味はチーム、プラットフォーム、またはフレームワークによって変わる可能性があります。 Unknowns to confirm: Release gate, environment, prepared test data, allowed error, time budget, owner, and flaky-test rule.

このリクエストを確認する

Review how Lint (Lint) is used now. Definition: Lint はコードを実行せずにチェックします。潜在的なバグ、安全でないパターン、スタイルの問題、壊れたプロジェクトルールを見つけます。 Release checks: Check the environment and prepared test data (fixture). Define a result you can observe, failure and edge cases, isolation, stable inputs, useful error details, and cleanup. Set a time budget, owner, and flaky-test rule. Before changing code, list the evidence, gaps, severity, and the smallest safe fix.

C
この用語はどれくらい公式か?

業界の慣例

この用語は職場でよく使われます。記載されている情報源は実践や制限をサポートする場合があります。用語のすべての部分を定義するものではありません。

単一の公式標準が全体の用語を管理するわけではありません。その意味はチーム、プラットフォーム、またはフレームワークによって変わる可能性があります。

範囲
ソースがカバーするもののみ:正式名、定義、プラットフォームAPI、実装、使用ガイド
ドキュメントステータス
安定
チェックオン
2026-07-30

証拠の情報源と範囲

権威のある情報源 · OpenJS Foundation · 安定 ESLint Documentation 範囲: 正式名、定義、プラットフォームAPI、実装、使用ガイド ここでの役割: 定義ではなく有用な背景情報 ソースの範囲: 正式名, 定義, プラットフォームAPI, 実装, 使用ガイド

自分でコピーする

ブラウザはこれをコピーできませんでした。下のリクエストを選択して自分でコピーしてください。