AlexeyKuznetsov
AlexeyKuznetsov

Reputation: 412

Rubocop doesn't see Gemfile

I have configured rubocop gem into my project with git commit hook using pre-commit and I have faced the problem: rubocop evaluating on commit hook checks Gemfile but when I manually run rubocop in project's directory it isn't check it. Actually when I run rubocop Gemfile it works but it's so inconvenient for me... Maybe someone has already solved this problem?

Upvotes: 1

Views: 291

Answers (1)

ashmaroli
ashmaroli

Reputation: 5434

From the Rubocop Changelog for v0.48.0:

Changes

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

Upvotes: 2

Related Questions