Skip to content

Commit

Permalink
rubocop: Add --server and --stdin options to rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
ippachi authored and mfussenegger committed Feb 20, 2024
1 parent 3e51220 commit 431eb3f
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions lua/lint/linters/rubocop.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,15 @@ local severity_map = {

return {
cmd = 'rubocop',
stdin = false,
args = {'--format', 'json', '--force-exclusion'},
stdin = true,
args = {
'--format',
'json',
'--force-exclusion',
'--server',
'--stdin',
function() return vim.api.nvim_buf_get_name(0) end,
},
ignore_exitcode = true,
parser = function(output)
local diagnostics = {}
Expand Down

0 comments on commit 431eb3f

Please sign in to comment.