getting testing there

This commit is contained in:
zach rice committed 2019-03-29 13:02:59 -05:00
1 parent 4ea0c66bec
commit 9176896742
4 files changed
+176 -172

No files matched your search

+3 -2
View File
@@ -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