Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(rubocop): don't auto-detect bundler, to avoid surprising configuration behavior #2923

Merged
merged 1 commit into from
Dec 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions lua/lspconfig/server_configurations/rubocop.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,6 @@ return {
filetypes = { 'ruby' },
root_dir = util.root_pattern('Gemfile', '.git'),
},
on_new_config = function(config, root_dir)
-- prepend 'bundle exec' to cmd if bundler is being used
local gemfile_path = util.path.join(root_dir, 'Gemfile')
if util.path.exists(gemfile_path) then
config.cmd = { 'bundle', 'exec', unpack(config.cmd) }
end
end,
docs = {
description = [[
https://github.com/rubocop/rubocop
Expand Down
Loading