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: 186,008 of 188,635
Downloads: 536

Daily

Ranking: 140,898 of 188,368
Downloads: 0

Depended by

RankDownloadsName

Depends on

RankDownloadsName
39711,347,593parser
57631,276,572rubocop
91457,866,710rubocop-ast
1,14138,229,611standard

Owners

#GravatarHandle
1iconAjithxolo