Allow content mappers emit diagnostics with different severity levels

Aperta
#64,932 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
53/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
tooling

Direzione di ricerca

Start by tracing how content mappers return diagnostics and where those diagnostics are classified as errors. The issue does not name files or tests, so locate the mapper diagnostic types and their callers first. Done means content mappers can report warnings while existing diagnostics remain errors; verify the behavior with relevant tests, including a warning from a Svelte mapper.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Suggestion
🔍 Search Terms

content mappers, diagnostics, warning

✅ Viability Checklist
⭐ Suggestion

Currently, all diagnostics returned by a content mappers are treated as errors. It would be nice if content mappers could also produce warnings.

📃 Motivating Example

For example, a Svelte content mapper could emit warnings for the svelte's compiler warnings.

💻 Use Cases
  • Compiler warnings in compiled languages
  • Flagging duplicate keys in simple formats that allow them
  • Flagging trailing commas in json.
Lingua principale
Go
Stelle
112k
Fork
15.4k
Merge medio
2g 21h
PR unite (30g)
126

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di microsoft/TypeScript

Tutte le issue di microsoft/TypeScript

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.