Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[Feature Request][Help Offer] Get All References

Aperta
#433 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
30/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
ruby
Ambito
tooling

Direzione di ricerca

Inizia esaminando la PR #397 e i percorsi Checker, Violations e ParsePackwerk menzionati nell’issue. Verifica se l’approccio proposto restituisce tutti i riferimenti, inclusi quelli nei TODOs, e se supporta QueryPackwerk; il lavoro è completo quando esiste un’implementazione concordata o un follow-up integrabile.

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

Descrizione

Hey all,

Gusto just recently open sources QueryPackwerk, which allows you to query packwerk violations in much the same way as you might query an ActiveRecord object. One of the key weaknesses of this gem is that it relies on Violations to run, and the ParsePackwerk gem to fuel them, meaning that if anything is added to a TODO it gets skipped.

Is there a way to potentially get all Packwerk references into a single list?

My hunch is yes, but I'm having a bit of trouble piecing together how to go about that. I think that using a Checker might be a path, and then trying to emulate a bit of how violations work today except trying to get rid of any exclusion clauses. Is that the right direction, or am I missing something? Currently trying to reconstitute this from the source code to see if I can cobble something together, but also wanted to check if something already exists or there's an easier way that I'm not seeing here.

TL;DR: I want to help create a way to get a list of all references in Packwerk, but could use a few pointers or some direction as this is not a documented path for the library.

If it does not exist I'd be up for helping to get it going, and adding it to tools like QueryPackwerk. I seem to remember a while ago I was chatting with Rafael about potentially even putting references into a SQLite3 DB of some sort to try and make tooling here even easier, but it's been a bit.


EDIT: I do see this PR looks to achieve what I'm looking for, could we consider merging 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.