From b07161024022a22c6ba0a0d2e655ec7dffad707b Mon Sep 17 00:00:00 2001 From: Chris Plock Date: Mon, 20 Jan 2025 14:00:34 -0800 Subject: [PATCH] golangci-lint: do not exit error when finding lint Add arg to golangci-lint to not error exit when finding lint. This allows error exit code to indicate failure to run the linter itself, update the linter config to not ignore error exit --- lua/lint/linters/golangcilint.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/lint/linters/golangcilint.lua b/lua/lint/linters/golangcilint.lua index d4d87170..f8d0dc05 100644 --- a/lua/lint/linters/golangcilint.lua +++ b/lua/lint/linters/golangcilint.lua @@ -12,6 +12,7 @@ return { 'run', '--out-format', 'json', + '--issues-exit-code=0', '--show-stats=false', '--print-issued-lines=false', '--print-linter-name=false', @@ -20,7 +21,6 @@ return { end }, stream = 'stdout', - ignore_exitcode = true, parser = function(output, bufnr, cwd) if output == '' then return {}