RuboCop picking up .rubocop.yml from gem instead of project
I just added a RuboCop Rake task to my project: RuboCop::RakeTask.new(:internal_investigation)
This works fine on my own machines. But on AppVeyor I get errors:
https://ci.appveyor.com/project/thomthom/rubocop-sketchup/builds/19...
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?
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | 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
1 Posted by thomas on 12 Oct, 2018 11:10 AM
I fix it by adding vendor/*/ to .rubocop.yml
Owen McDonnell closed this discussion on 12 Oct, 2018 03:57 PM.