misogi / vscode-ruby-rubocop

Rubocop extension for Visual Studio Code
https://marketplace.visualstudio.com/items/misogi.ruby-rubocop
MIT License
137 stars 68 forks source link

Support relative path of .rubocop.yml #159

Closed KSH-code closed 2 years ago

KSH-code commented 2 years ago

close #158

if rubocop version is 1.3.1 and not using .rubocop.yml in root, cannot find .rubocop.yml in current workspace.

workspace as absolute path cannot be found as rubocop config. it must be represented by relative path.

My solution is

  1. if configFilePath is empty, use .rubocop.yml in current directory if it exists.
  2. else working process is the same as before.
KSH-code commented 2 years ago

@misogi Can you please check this?