Meta Redux
Read post

RuboCop 1.89: Project-Wide Analysis with Rubydex

RuboCop 1.89 introduces project-wide analysis via optional integration with rubydex, a Shopify library that builds a cross-file index of Ruby code. Previously limited to single-file analysis, RuboCop can now detect typos in constant/method names across files (Lint/NameTypo), flag deprecated API usage project-wide (Lint/DeprecatedReference), find unused private methods (Lint/UnusedPrivateMethod), and catch duplicate methods or constant reassignments across different files. Existing cops like Lint/MissingSuper and Lint/ConstantResolution also become significantly less noisy with full ancestry resolution. Rubydex is opt-in, requiring two config changes, and falls back gracefully if not installed. A new option to index gem sources raises ancestry resolution from ~20% to ~97% of classes.

    #ruby
Aug 05•8m read time•From metaredux.com
Post cover image
Table of contents
The single-file curse (limitation)Enter rubydexWhat the index unlocks in 1.89Still early days
270 Impressions
Meta Redux's image
Meta Redux

MetaRedux provides tutorials, guides, and resources for learning and mastering Redux, a state manage...

3 Followers

•

18 Upvotes

Would you recommend this post?

Copy link
WhatsApp
Facebook
X
New Squad
  • © 2026 Daily Dev Ltd.
  • Guidelines
  • Explore
  • Tags
  • Sources
  • Squads
  • Leaderboard