Skip to content

Remove dead attr_reader: Spoom::Sorbet::Metrics::CodeMetricsVisitor::counters #743

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

shopify-codedb[bot]
Copy link
Contributor

This attr_reader appears to be unused and could be removed.

Before approving this pull-request, please double-check that it is indeed unused.

If this code is actually used, please add a comment explaining why and close this pull-request.

You can find more unused code in your project at: https://code.shopify.io/projects/shopify/spoom/code_removals/spoom

Note: closing this pull-request will mark the code as ignored and exclude it from future dead code detection.

@shopify-codedb shopify-codedb bot requested a review from a team as a code owner May 24, 2025 01:16
Copy link
Contributor

@KaanOzkan KaanOzkan left a comment

Choose a reason for hiding this comment

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

Looks dead indeed, instance variable isn't used externally, clients use the helper method collect_code_metrics which owns and supplies Counters instance instead of retrieving it from CodeMetricsVisitor

@KaanOzkan KaanOzkan merged commit f67912b into main May 26, 2025
8 checks passed
@KaanOzkan KaanOzkan deleted the code-db/code_removal/spoom/spoom__sorbet__metrics__code_metrics_visitor__counters branch May 26, 2025 14:18
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.

1 participant