RubyGems Navigation menu

scope_hunter 0.1.0

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:
=

installation:
=

Versions:

  1. 0.1.3 November 29, 2025 (11,5 ko)
  2. 0.1.2 October 27, 2025 (11,5 ko)
  3. 0.1.1 October 27, 2025 (11,5 ko)
  4. 0.1.0 October 27, 2025 (11,5 ko)

Dépendances de Runtime (3):

parser ~> 3.3
rubocop >= 1.60
rubocop-ast ~> 1.32

Dépendances de Development (1):

standard >= 1.40

Propriétaires:

Pushed by:

Auteurs:

  • Ajith kumar

Total de contrôle SHA 256:

=

Total de téléchargements 539

Pour cette version 109

Version publiée:

License:

MIT

Version de Ruby requise: >= 3.2.0

Liens: