Rubocop 没有看到 Gemfile

Rubocop doesn't see Gemfile

我已经配置了 rubocop gem into my project with git commit hook using pre-commit 我遇到了这个问题:rubocop 评估提交挂钩检查 Gemfile 但是当我在项目目录中手动 运行 rubocop 它没有检查它.实际上当我 运行 rubocop Gemfile 它工作但它对我来说太不方便......也许有人已经解决了这个问题?

来自 v0.48.0 的 Rubocop 更新日志:

Changes

#3997: Include all ruby files by default and exclude non-ruby files. (@dorian)