[Bug Report] Improve strict mode
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 35/100
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
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/updatewithout 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
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Shopify/packwerk
-
[Bug Report] Concurrent runs sharing a cold cache fail with JSON::ParserErrorForse già presa @sarankumar1325 l’ha presa 9 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 30/100
-
bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
-
[Bug Report] Getting "There were stale violations found, please run `packwerk update-todo`" even there is no stale violationsForse già presa Una pull request collegata a questa issue è aperta o già unita. Apertabug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 42/100
Tutte le issue di Shopify/packwerk
Issue simili
-
JWT::EncodedToken raises TypeError for a non-object headerForse già presa @anakinj l’ha presa oggi. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
jwt/ruby-jwt#780 · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 Meno di un'ora Idoneità per principianti 70/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
zold-io/zold-ruby-sdk#85 ·