RuboCop picking up .rubocop.yml from gem instead of project

thomas's Avatar


12 Oct, 2018 10:45 AM

I just added a RuboCop Rake task to my project:

This works fine on my own machines. But on AppVeyor I get errors:

Running RuboCop...
Error: Unsupported Ruby version 2.1 found in `TargetRubyVersion` parameter (in vendor/bundle/ruby/2.2.0/gems/rainbow-3.0.0/.rubocop.yml). 2.1-compatible analysis was dropped after version 0.58.
Supported versions: 2.2, 2.3, 2.4, 2.5
RuboCop failed!
Command exited with code 1

Any idea why the RuboCop Rake task is reading the .rubocop.yml file from the gem? And how can I avoid this?

  1. 1 Posted by thomas on 12 Oct, 2018 11:10 AM

    thomas's Avatar

    I fix it by adding vendor/*/ to .rubocop.yml

  2. Owen McDonnell closed this discussion on 12 Oct, 2018 03:57 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

18 Jan, 2020 11:37 AM
18 Jan, 2020 05:35 AM
18 Jan, 2020 02:13 AM
18 Jan, 2020 12:16 AM
17 Jan, 2020 11:13 PM