Shopify / Shopify/rubydex

Associate `.new` and `#initialize` methods

Open
#684 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Rust
Stars
355
Forks
24
Avg merge
2d 6h
Merged PRs (30d)
17

Description

Let's investigate how we can connect new and initialize. Hopefully, we can do it in a generic way that allows connecting other methods where we have a pattern that the method call doesn't match the user definition.

Another example is Active Job's perform (definition) and perform_now or perform_later (call).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by investigating how the analyzer currently connects method definitions to calls, using .new/#initialize and Active Job's perform/perform_now or perform_later as examples. Done means defining a generic association approach and confirming which method patterns it supports.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.