Closed noraworld closed 3 years ago
ruby-rubocop configuration is the following.
I don’t want to specify the config file path and execute path because:
I will close this issue because this project appears not to be maintained.
I found another VS Code extension that provides the same features as this.
Ruby - Visual Studio Marketplace
I installed it, added the settings as follow, and then, yeah, I was able to enable RuboCop across multiple Ruby versions on VS Code.
"ruby.useBundler": true,
"ruby.useLanguageServer": true,
"ruby.lint": {
"rubocop": {
"useBundler": true,
"except": ["Metrics"] // because it is annoying that it puts wavy lines to all lines in those methods
}
},
"ruby.format": "rubocop",
I hope this is helpful those who is facing the same issue.
I’ve got an error while executing RuboCop via ruby-rubocop from VS Code.
I know the reason why this error happens. In this project, the versions of Ruby and RuboCop are 2.5.7 and 0.80.1 respectively. However, ruby-rubocop executes RuboCop with Ruby version 2.7.1 and RuboCop version 0.88.0.
The problem is that it uses the wrong versions of Ruby and RuboCop. I’ve checked the followings.
.rubocop.yml
in this project is correctHow can I fix this?
Here’s my current environment.