Skip to content

Show orphan definitions in stats#561

Merged
st0012 merged 1 commit intomainfrom
show-orphan-definitions-in-stats
Feb 5, 2026
Merged

Show orphan definitions in stats#561
st0012 merged 1 commit intomainfrom
show-orphan-definitions-in-stats

Conversation

@st0012
Copy link
Copy Markdown
Member

@st0012 st0012 commented Feb 4, 2026

In the DSL processing PR, I noticed that many definitions are orphaned. Having stats like this will help us identify and fix the issue faster in the future.

Example output:

Definition breakdown:
  Type                    Total   Linked   Orphan
  ----                    -----   ------   ------
  Method                 360084   360083        1
  InstanceVariable       215153   215139       14
  Module                 197218   197217        1
  Class                  112067   112063        4
  Constant                65490    65478       12
  AttrReader              36903    36902        1
  SingletonClass          15999    15994        5
  AliasMethod              7166     7166        0
  AttrAccessor             6425     6425        0
  ConstantAlias            3745     3744        1
  ClassVariable             856      856        0
  AttrWriter                419      419        0
  GlobalVariable             36       36        0
  ----                    -----   ------   ------
  TOTAL                 1021561  1021522       39
  Orphan rate: 0.0%

In the DSL processing PR, I noticed that many definitions are orphaned.
Having stats like this will help us identify and fix the issue faster
in the future.
@st0012 st0012 requested a review from a team as a code owner February 4, 2026 22:45
@st0012 st0012 self-assigned this Feb 4, 2026
Copy link
Copy Markdown
Member

@vinistock vinistock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not opposed to these stats, but it would be nice if we knew the names or location of definitions that ended up orphaned, so that we can more easily investigate

@st0012
Copy link
Copy Markdown
Member Author

st0012 commented Feb 5, 2026

I've opened #563 for adding such feature

@st0012 st0012 merged commit db137bb into main Feb 5, 2026
27 checks passed
@st0012 st0012 deleted the show-orphan-definitions-in-stats branch February 5, 2026 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants