scope_hunter 0.1.3
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.
Gemfile:
=
install:
=
Runtime Dependencies (3):
Development Dependencies (1):
standard
>= 1.40