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?
From the Rubocop Changelog for v0.48.0:
Changes
#3997: Include all ruby files by default and exclude non-ruby files. (@dorian)