mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 13:14: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
@@ -1,7 +1,6 @@
|
||||
package report
|
||||
|
||||
import (
|
||||
"strconv"
|
||||
"strings"
|
||||
)
|
||||
|
||||
@@ -43,10 +42,3 @@ func (f *Finding) Redact() {
|
||||
f.Match = strings.Replace(f.Match, f.Secret, "REDACTED", -1)
|
||||
f.Secret = "REDACT"
|
||||
}
|
||||
|
||||
func (f *Finding) Hash() string {
|
||||
return f.Secret + f.Commit +
|
||||
strconv.Itoa(f.EndLine) +
|
||||
strconv.Itoa(f.StartLine)
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user