Lint
Lint
Lint controlla il codice senza eseguirlo. Trova bug probabili, modelli non sicuri, problemi di stile e regole del progetto rotte.
Un altro esempio
Prima della revisione, lint individua una Promise non gestita, un'immagine inaccessibile e un'importazione da un modulo solo server.
Parti principali
- 01Code or behavior under test
- 02Observable evidence
- 03Coverage, failure, and recovery
Usalo quando
Esegui regole stabili negli editor e nel CI. Limita le correzioni automatiche a cambiamenti sicuri e prevedibili.
Non usarlo quando
Non attivare regole rumorose, trattare lint come test, o correggere file non correlati durante un lavoro mirato.
Nome usato nel codice
AST rules + diagnostics + optional autofix Prima di spedire
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: Prima della revisione, lint individua una Promise non gestita, un'immagine inaccessibile e un'importazione da un modulo solo server. Validation approach: Lint (Lint). Why it fits: Esegui regole stabili negli editor e nel CI. Limita le correzioni automatiche a cambiamenti sicuri e prevedibili. Do not use it when: Non attivare regole rumorose, trattare lint come test, o correggere file non correlati durante un lavoro mirato. 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): Nessun singolo standard ufficiale controlla l'intero termine. Il suo significato può cambiare tra team, piattaforme o framework. Unknowns to confirm: Release gate, environment, prepared test data, allowed error, time budget, owner, and flaky-test rule.
Controlla questa richiesta
Review how Lint (Lint) is used now. Definition: Lint controlla il codice senza eseguirlo. Trova bug probabili, modelli non sicuri, problemi di stile e regole del progetto rotte. 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.