Tecnologia & Testing Nucleo C · Convenzione del settore Piattaforma: Generale

Lint

Lint

Lint controlla il codice senza eseguirlo. Trova bug probabili, modelli non sicuri, problemi di stile e regole del progetto rotte.

Vedi come funziona
Potresti chiamarlo Lintlinteranalisi staticaregole del codice

Vedi come funziona

Esempio originale svoltoLint

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

  1. 01Code or behavior under test
  2. 02Observable evidence
  3. 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.

Puoi copiare la richiesta

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.

C
Quanto è ufficiale questo termine?

Convenzione del settore

Le persone usano spesso questo termine al lavoro. Le fonti elencate possono supportare la pratica o i limiti. Non definiscono ogni parte del termine.

Nessun singolo standard ufficiale controlla l'intero termine. Il suo significato può cambiare tra team, piattaforme o framework.

Ambito
Solo ciò che la sorgente copre:nome canonico、definizione、API della piattaforma、implementazione、guida all'uso
stato del documento
stabile
Selezionato attivato
2026-07-30

Fonti e ambito delle prove

Fonte dell'autorità · OpenJS Foundation · stabile ESLint Documentation Ambito: nome canonico、definizione、API della piattaforma、implementazione、guida all'uso Ruolo qui: Contesto utile, non una definizione La fonte copre: nome canonico, definizione, API della piattaforma, implementazione, guida all'uso

Copia tu stesso

Il browser non è riuscito a copiare questo. Seleziona la richiesta qui sotto e copiala tu stesso.