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 校验和:

=

下载总量 494

这个版本 120

版本发布:

许可:

MIT

需要的 Ruby 版本: >= 3.2.0

链接: