Categories: None [Edit]
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
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 36 | 853,928,044 | parser |
| 55 | 757,714,320 | rubocop |
| 84 | 573,854,146 | rubocop-ast |
| 999 | 52,538,041 | standard |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | Ajithxolo |