Replies: 2 comments
-
|
Well, I don't know what changed between yesterday and today but that last code snippet is working. You can verify it takes effect by changing something like the config path or something to be invalid. Rubocop will throw an error and log the details of that with whatever you purposely modified to be incorrect. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
I spoke too soon, I can't find a combination of settings that instructs the LSP to run Rubocop through a Docker command. It always falls back and tries to use what's on the host system when it comes to applying the rules. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
On https://docs.rubocop.org/rubocop/usage/lsp.html it mentions we can do this to start the LSP:
I noticed the
cmdis something we can modify.I run my applications in Docker so I tried:
It might be working but I'm not 100% sure yet.
But in either case, I had to do this to disable LazyVim's rubocop configuration because it was using the default
cmd.How would we configure things so the custom
cmdis used?This doesn't work but it demonstrates what I'd like to be able to do:
Beta Was this translation helpful? Give feedback.
All reactions