-
Notifications
You must be signed in to change notification settings - Fork 286
False Positive Rubocop RSpec/FilePath Warning #625
Comments
This issue has not had activity for 30 days. It will be automatically closed in 7 days. |
This is still an issue. github-actions should not close an issue as stale without a response from a contributor, lest this be taken as a sign that the project is dead. |
I have the exact same issue and it is driving me nuts |
This issue still exists, running on VSCode 1.51.1, Ubuntu 20.04, same version of vscode-ruby. |
After bit more investigation, the issue might be also in rubocop-rspec. It's apparently been broken by the rubocop-rspec release 1.39.0 (2020-05-01) which included this change: Here is the related issue I created for this: Maybe they can provide some insight about the issue. The underlying reason why it does not work in vscode-ruby is also explained in that issue. |
Wondering if properly configuring a multi-root workspace helps:
a888116 seems to have added support for falling back to some common root but may have muted the problem with running linters from an incorrect directory. |
same here, any updates? |
same, a year later. |
It didn't for me :( |
Your environment
vscode-ruby
version: 0.27.0useLanguageServer
is true in your configuration?)Tried true and false
Expected behavior
rubocop lint output should match what is run from the command line. There should be no RSpec/FilePath error
Actual behavior
For an rspec file
spec/controllers/admin/orders_controller_spec.rb
with the code
I get the following error
The text was updated successfully, but these errors were encountered: