mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 13:14:22 +01:00
getting testing there
This commit is contained in:
1 parent
4ea0c66bec
commit
9176896742
4 files changed
+176
-172
No files matched your search
+3
-2
@@ -1,6 +1,8 @@
|
||||
package gitleaks
|
||||
|
||||
import "math"
|
||||
import (
|
||||
"math"
|
||||
)
|
||||
|
||||
// getShannonEntropy https://en.wiktionary.org/wiki/Shannon_entropy
|
||||
func getShannonEntropy(data string) (entropy float64) {
|
||||
@@ -40,7 +42,6 @@ func highEntropyLineIsALeak(line string) bool {
|
||||
if !opts.NoiseReduction {
|
||||
return true
|
||||
}
|
||||
|
||||
for _, re := range config.Entropy.regexes {
|
||||
if re.FindString(line) != "" {
|
||||
return true
|
||||
|
||||
Reference in new issue
Block a user