Skip to content
This repository has been archived by the owner on Jul 31, 2023. It is now read-only.

rubocop not using workspace .rubocop.yml #619

Closed
jneander opened this issue May 15, 2020 · 1 comment
Closed

rubocop not using workspace .rubocop.yml #619

jneander opened this issue May 15, 2020 · 1 comment

Comments

@jneander
Copy link

Your environment

  • vscode-ruby version: 0.27.0
  • Ruby version: ruby 2.6.5p114
  • Ruby version manager (if any): rbenv 1.1.2
  • VS Code version: 1.41.1
  • Operating System: macOS 10.14.6
  • Using language server? (eg useLanguageServer is true in your configuration?)
    Tried both ways.

Expected behavior

The rules in the .rubocop.yml file in the workspace root should be honored.

Actual behavior

None of the rules in the .rubocop.yml file in the workspace root are being honored. When that same .rubocop.yml file is located in the user home path, it behaves as expected.

I saw that #578 seems related. But none of the discussion there solved the issue here.

@jneander
Copy link
Author

I was getting tunnel vision and did not notice that the file I was trying to lint was outside of the workspace. Gonna go shame myself in the corner for a while.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant