RubyGems Navigation menu

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

安裝:
=

版本列表:

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

Runtime 相依性套件 (3):

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

Development 相依性套件 (1):

standard >= 1.40

擁有者:

推送者:

作者:

  • Ajith kumar

SHA 256 總和檢查碼:

=

總下載次數 491

這個版本 117

版本发布:

授權:

MIT

Ruby 版本需求: >= 3.2.0

相關連結: