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: 186,295 of 190,091
Downloads: 641
Daily
Ranking: 76,028 of 189,967
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 |
|---|---|---|
| 39 | 741,605,521 | parser |
| 56 | 656,935,032 | rubocop |
| 90 | 481,451,724 | rubocop-ast |
| 1,091 | 42,073,929 | standard |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | Ajithxolo |