Skip to content

Commit

Permalink
golangci-lint: set --issues-exit-code=0 (#732)
Browse files Browse the repository at this point in the history
This allows the error exit code to indicate failure to run the linter
itself
  • Loading branch information
plockc authored Jan 21, 2025
1 parent ba3a77b commit 3d5190d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/lint/linters/golangcilint.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ return {
'run',
'--out-format',
'json',
'--issues-exit-code=0',
'--show-stats=false',
'--print-issued-lines=false',
'--print-linter-name=false',
Expand All @@ -20,7 +21,6 @@ return {
end
},
stream = 'stdout',
ignore_exitcode = true,
parser = function(output, bufnr, cwd)
if output == '' then
return {}
Expand Down

0 comments on commit 3d5190d

Please sign in to comment.