mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-29 20:54:22 +01:00
Update entropy noise reduction
Instead of reducing noise by default, there's a new flag called `--noise-reduction` to enable that.
This commit is contained in:
1 parent
ea49078ffd
commit
68c2a18f6f
3 files changed
+55
-31
No files matched your search
@@ -590,6 +590,15 @@ func TestAuditRepo(t *testing.T) {
|
||||
testOpts: Options{
|
||||
Entropy: 4.7,
|
||||
},
|
||||
numLeaks: 6,
|
||||
},
|
||||
{
|
||||
repo: leaksRepo,
|
||||
description: "leaks present with entropy",
|
||||
testOpts: Options{
|
||||
Entropy: 4.7,
|
||||
NoiseReduction: true,
|
||||
},
|
||||
numLeaks: 2,
|
||||
},
|
||||
{
|
||||
@@ -611,6 +620,15 @@ func TestAuditRepo(t *testing.T) {
|
||||
{
|
||||
repo: leaksRepo,
|
||||
description: "toml entropy range",
|
||||
numLeaks: 298,
|
||||
configPath: path.Join(configsDir, "entropy"),
|
||||
},
|
||||
{
|
||||
repo: leaksRepo,
|
||||
testOpts: Options{
|
||||
NoiseReduction: true,
|
||||
},
|
||||
description: "toml entropy range",
|
||||
numLeaks: 58,
|
||||
configPath: path.Join(configsDir, "entropy"),
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user