[Bug Report] Improve strict mode

Aperta
#320 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
ruby
Ambito
cli, tooling

Direzione di ricerca

Inizia riproducendo il comportamento con strict mode abilitato, quindi traccia i punti di ingresso packwerk check e update e il modo in cui vengono letti package_todo.yml e package.yml. Il lavoro è completo quando le violazioni di strict falliscono prima di essere registrate e l'output è formattato visibilmente come un errore.

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

Descrizione

bug

Description
Strict mode is a great feature for zero violation packages, but I think it could be better.

To Reproduce
Enable strict mode for a package and run packwerk check.

Expected Behaviour
There are two problems:

  • It should raise when you run check / update without having the violation already recorded in your package_todo.yml.
  • It should clearly indicates that the text is an error (add emojis or text colour or something to make it look like an error).

Screenshots

% bin/packwerk check
Running via Spring preloader in process 629777
running spring after_fork
📦 Packwerk is inspecting 58252 files
....[etc.]
📦 Finished in 13.49 seconds

No offenses detected
No stale violations detected
strict_package cannot have dependency violations on other_package because strict mode is enabled for dependency violations in the enforcing package's package.yml

Version Information

  • Packwerk: 3.0.0 / edge
  • Ruby 3.2.1

Additional Context
Add better error formatting and make the error happen sooner (without having to record it).

Lingua principale
Ruby
Stelle
1.9k
Fork
125
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

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 Shopify/packwerk

Tutte le issue di Shopify/packwerk

Issue simili

Altre issue su Ruby

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.