Support formatting changed files with rs fmt --changed

Aperta
#649 0 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
52/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
cli

Direzione di ricerca

Start by reading the rs fmt command implementation and its existing path and ignore filter handling, then inspect how the CLI resolves the default Git branch and gathers changed, uncommitted, and untracked files. Compare the behavior with the referenced bun fmt --changed documentation. Done means both examples work, filters are respected, and no matching files exits successfully.

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

Descrizione

Add rs fmt --changed to format or check only files changed relative to a Git ref. This would help with local branch checks and PR CI runs, especially when no formatting cache is available.

rs fmt --changed
rs fmt --changed=origin/main --check

Use the default branch when no ref is provided. Include uncommitted changes and untracked files, respect existing path and ignore filters, and exit successfully when no files match.

Reference: bun fmt --changed.

Lingua principale
TypeScript
Stelle
39
Fork
3
Merge medio
5h 17m
PR unite (30g)
64

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

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 rstackjs/rstack-cli

Tutte le issue di rstackjs/rstack-cli

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.