Lint
Lint
Lint überprüft Code, ohne ihn auszuführen. Es findet wahrscheinliche Fehler, unsichere Muster, Stilprobleme und gebrochene Projektregeln.
Ein weiteres Beispiel
Vor dem Review findet ein lint ein nicht behandeltes Promise, ein nicht barrierefreies Bild und einen Import aus einem server-only Modul.
Hauptteile
- 01Code or behavior under test
- 02Observable evidence
- 03Coverage, failure, and recovery
Verwenden Sie es, wenn
Stabile Regeln in Editoren und CI ausführen. Automatische Korrekturen auf sichere, vorhersehbare Änderungen beschränken.
Nutze es nicht, wenn
Aktiviere keine lauten Regeln, behandle Linting nicht als Test und repariere in fokussierter Arbeit keine unrelated Dateien.
In Code verwendeter Name
AST rules + diagnostics + optional autofix Vor dem Ausliefern
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: Vor dem Review findet ein lint ein nicht behandeltes Promise, ein nicht barrierefreies Bild und einen Import aus einem server-only Modul. Validation approach: Lint (Lint). Why it fits: Stabile Regeln in Editoren und CI ausführen. Automatische Korrekturen auf sichere, vorhersehbare Änderungen beschränken. Do not use it when: Aktiviere keine lauten Regeln, behandle Linting nicht als Test und repariere in fokussierter Arbeit keine unrelated Dateien. 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): Kein einziger offizieller Standard kontrolliert den gesamten Begriff. Seine Bedeutung kann sich zwischen Teams, Plattformen oder Frameworks ändern. Unknowns to confirm: Release gate, environment, prepared test data, allowed error, time budget, owner, and flaky-test rule.
Diese Anfrage prüfen
Review how Lint (Lint) is used now. Definition: Lint überprüft Code, ohne ihn auszuführen. Es findet wahrscheinliche Fehler, unsichere Muster, Stilprobleme und gebrochene Projektregeln. 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.