mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-12-01 05:24:22 +01:00
Add option to include Line field in report (#1616)
Signed-off-by: Taiki Ono <taiki@finatext.com>
This commit is contained in:
1 parent
dbb42a727d
commit
8e94f98e92
7 files changed
+80
-22
No files matched your search
@@ -22,6 +22,8 @@ func Write(findings []Finding, cfg config.Config, ext string, reportPath string)
|
||||
switch ext {
|
||||
case ".json", "json":
|
||||
err = writeJson(findings, file)
|
||||
case ".jsonextra", "jsonextra":
|
||||
err = writeJsonExtra(findings, file)
|
||||
case ".csv", "csv":
|
||||
err = writeCsv(findings, file)
|
||||
case ".xml", "junit":
|
||||
|
||||
Reference in new issue
Block a user