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

Commit

Permalink
fix(builtins): get rubocop output directly from index
Browse files Browse the repository at this point in the history
  • Loading branch information
Jose Alvarez committed Oct 20, 2021
1 parent 81fdb0a commit d5aeb72
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions lua/null-ls/builtins/diagnostics.lua
Original file line number Diff line number Diff line change
Expand Up @@ -315,14 +315,7 @@ M.selene = h.make_builtin({

local handle_rubocop_output = function(params)
if params.output and params.output.files then
local file
for _, file_output in ipairs(params.output.files) do
if file_output.path == vim.fn.fnamemodify(params.bufname, ":t") then
file = file_output
break
end
end

local file = params.output.files[1]
if file and file.offenses then
local parser = h.diagnostics.from_json({
severities = {
Expand Down

0 comments on commit d5aeb72

Please sign in to comment.