Categories: None [Edit]

scope_hunter

https://rubygems.org/gems/scope_hunter
https://github.com/Ajithxolo/scope_hunter
Scope Hunter is a RuboCop extension that detects ActiveRecord query chains that duplicate existing named scopes and suggests using those scopes instead. It indexes model scopes, canonicalizes relation chains, and flags matches with an autocorrect that replaces the initial query with Model.scope while preserving any trailing methods. This keeps query logic DRY, improves readability, and helps teams discover and reuse well-named scopes.

Total

Ranking: 187,436 of 197,891
Downloads: 1,372

Daily

Ranking: 84,917 of 197,861
Downloads: 0

Depended by

RankDownloadsName

Depends on

RankDownloadsName
36863,664,618parser
55766,598,174rubocop
84581,970,354rubocop-ast
99453,387,490standard

Owners

#GravatarHandle
1iconAjithxolo