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,295 of 190,091
Downloads: 641

Daily

Ranking: 76,028 of 189,967
Downloads: 2

Depended by

RankDownloadsName

Depends on

RankDownloadsName
39741,605,521parser
56656,935,032rubocop
90481,451,724rubocop-ast
1,09142,073,929standard

Owners

#GravatarHandle
1iconAjithxolo