mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-12-01 05:24:22 +01:00
Refactor detect, add entropy to all findings (#804)
Refactor `detect`, add `entropy` to all findings
This commit is contained in:
1 parent
9326f35380
commit
6e72472b60
24 files changed
+1097
-924
No files matched your search
+4
-5
@@ -21,13 +21,12 @@ func Write(findings []Finding, cfg config.Config, ext string, reportPath string)
|
||||
ext = strings.ToLower(ext)
|
||||
switch ext {
|
||||
case ".json", "json":
|
||||
writeJson(findings, file)
|
||||
err = writeJson(findings, file)
|
||||
case ".csv", "csv":
|
||||
writeCsv(findings, file)
|
||||
err = writeCsv(findings, file)
|
||||
case ".sarif", "sarif":
|
||||
writeSarif(cfg, findings, file)
|
||||
|
||||
err = writeSarif(cfg, findings, file)
|
||||
}
|
||||
|
||||
return nil
|
||||
return err
|
||||
}
|
||||
Reference in new issue
Block a user