I run this rubocop extension in my VS Code
)
Recently the project I was on did a Ruby update and my rubocop stopped working with an error like this
)
The issue here was that the rubocop in the project was newer than the globally installed rubocop so it was returning empty output. This extension doesn't look like it uses rbenv
properly so I needed to globally update rubocop which I did with
1 | /usr/local/bin/rubocop -v -> 1.22.3 |
I still had some errors about missing rules and needed to also do
1 | sudo gem install rubocop-rake |
Ideally I'd like this extension to use the rbenv version of ruby but this gets me sorted for now.