When opening a ruby file in VSCode I get the error:
.rubocop.yml: Metrics/LineLength has the wrong namespace - should be Layout Error: The `Style/BracesAroundHashParameters` cop has been removed. (obsolete configuration found in .rubocop.yml, please update it)
So linting in VSCode doesn't work. The reason is obvious: The LineLength cop is under the Metrics namespace, since the project uses rubocop 0.77.0 and moving it to Layout was introduced in 0.78.0. So changing the namespace would mean that running bundle exec rubocop would fail. As would the Travis build.
I'm unclear how I can specify the version that vscode itself is using, if it is a globally installed gem and how I can set the rubocop version for vscode specifically for each project - since I have different projects with different versions of Ruby and rubocop.
Thanks!