RubyGems Navigation menu

scope_hunter 0.1.2

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

インストール:
=

バージョン履歴:

  1. 0.1.3 November 29, 2025 (11.5KB)
  2. 0.1.2 October 27, 2025 (11.5KB)
  3. 0.1.1 October 27, 2025 (11.5KB)
  4. 0.1.0 October 27, 2025 (11.5KB)

Runtime依存関係 (3):

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

Development依存関係 (1):

standard >= 1.40

所有者:

プッシュ者:

作者:

  • Ajith kumar

SHA 256チェックサム:

=

累計ダウンロード数 491

このバージョンのみ 163

このバージョンがリリースされたのは:

ライセンス:

MIT

必要なRubyのバージョン: >= 3.2.0

リンク: