Skip to content

Commit

Permalink
fix(rubocop): don't auto-detect bundler, to avoid surprising configur…
Browse files Browse the repository at this point in the history
…ation behavior (#2923)

Ref. #2716. The referenced PR changes got somehow lost when it came to the removal of the `on_new_config` function.
  • Loading branch information
waiting-for-dev authored Dec 6, 2023
1 parent cf3dd4a commit 53ff4f7
Showing 1 changed file with 0 additions and 7 deletions.
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

0 comments on commit 53ff4f7

Please sign in to comment.