Skip to content

Commit

Permalink
Updates swiftlint builtins to check exit code (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakenvac authored Nov 13, 2023
1 parent 25b1f3e commit 0f7aef2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/null-ls/builtins/diagnostics/swiftlint.lua
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ return h.make_builtin({
to_stdin = true,
format = "json",
on_output = handle_swiftlint_output,
check_exit_code = function(code)
return code <= 2
end,
cwd = h.cache.by_bufnr(function(params)
return u.root_pattern("Package.swift", ".git")(params.bufname)
end),
Expand Down

0 comments on commit 0f7aef2

Please sign in to comment.