voidzero-dev / voidzero-dev/vite-plus

vp lint / vp run lint print no summary on a clean pass (unlike vp exec turbo run lint)

Ouverte
#2,035 2 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Rust
Étoiles
5.8k
Forks
262
Merge moyen
23 h 41 min
PR mergées (30 j)
138

Description

## Summary

Running `vp lint ` (or `vp run lint`, the task-runner form) directly prints **nothing at all** and exits 0 when there are zero lint violations — no "Found 0 warnings and 0 errors" summary, no file/rule count, nothing. The same underlying lint task, when invoked via `vp exec turbo run lint --filter=`, prints the full oxlint summary line even on a clean pass:

```
manolea-placeholder:lint: $ vp lint .
manolea-placeholder:lint: Found 0 warnings and 0 errors.
manolea-placeholder:lint: Finished in 422ms on 1103 files with 95 rules using 16 threads.
```

To be clear, this is **not** a correctness bug — I verified with injected violations that both invocation paths correctly detect and report real problems (a syntax error fails with exit 1 and the parse error text; a `debugger;` statement prints the `eslint(no-debugger)` warning by name in both paths). The only difference is the empty-output case.

## Why this is worth fixing

Empty stdout + exit 0 is ambiguous to a human running `vp lint .` locally before pushing: "no output" could mean "ran cleanly" or "didn't actually run" (e.g. wrong cwd, misconfigured filter, crashed silently). The turbo-wrapped invocation resolves that ambiguity by always printing a summary; the direct `vp lint`/`vp run lint` invocation doesn't.

## Repro

In a workspace with a shared `vite.config.ts` (via `defineConfig()`, exporting `lint`/`run`/etc. sub-configs) and a package whose `package.json` has `"lint": "vp lint ."`:

```sh
# From the package directory — prints nothing, exit 0
cd packages/some-pkg
vp lint .
echo $? # 0

# From the workspace root — prints a summary even though nothing changed
vp exec turbo run lint --filter=some-pkg --force
```

## Ask

Have `vp lint`/`vp run lint` print the same "Found N warnings and M errors. Finished in Xms on Y files with Z rules" summary on a clean pass that `vp exec turbo run lint` shows, so a passing run is visibly distinguishable from a run that silently did nothing.

## Environment

- vite-plus 0.2.1
- oxlint 1.70.0
- Linux x86_64

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Reproduisez les commandes directes `vp lint .` et `vp exec turbo run lint --filter=some-pkg --force` de l’issue et comparez leur sortie lors d’une exécution propre. Suivez le chemin de `vp lint`/`vp run lint` et son traitement du résultat sous-jacent de oxlint ; le travail est terminé lorsqu’une exécution directe propre affiche le résumé des avertissements/erreurs, du temps, du fichier et de la règle, tout en conservant le code de sortie signalé.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
javascript, rust, typescript
Domaine
tooling
Type d'issue
Bug
Difficulté
3/5
Temps estimé
1-2 jours
Activité
Active
Clarté
Clairement spécifiée
Accessibilité débutants
68/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.