Skip to content

Commit b98d8df

Browse files
authored
gitleaks: Support stdin (#896)
1 parent 1f19dac commit b98d8df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lua/lint/linters/gitleaks.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ local LINTER_NAME = "gitleaks"
44
return {
55
name = LINTER_NAME,
66
cmd = "gitleaks",
7-
stdin = false,
7+
stdin = true,
88
append_fname = true,
9-
args = { "--report-format=json", "--report-path=-", "--exit-code=0", "file" },
9+
args = { "stdin", "--report-format=json", "--report-path=-", "--exit-code=0" },
1010
stream = "stdout",
1111
ignore_exitcode = false,
1212
parser = function(output, bufnr, _)

0 commit comments

Comments
 (0)