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,270 of 197,314
Downloads: 1,353

Daily

Ranking: 64,061 of 197,258
Downloads: 2

Depended by

RankDownloadsName

Depends on

RankDownloadsName
36853,928,044parser
55757,714,320rubocop
84573,854,146rubocop-ast
99952,538,041standard

Owners

#GravatarHandle
1iconAjithxolo