mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 05:04:22 +01:00
fix deduplication issue caused by clobbered findings (#742)
* fix deduplication issue caused by clobbered findings * fix index * remove indexing, slow is better than wrong
This commit is contained in:
1 parent
84e285e4ce
commit
ce42947cae
17 files changed
+81
-66
No files matched your search
@@ -17,12 +17,12 @@ func TestFromFiles(t *testing.T) {
|
||||
cfgName string
|
||||
opts Options
|
||||
source string
|
||||
expectedFindings []*report.Finding
|
||||
expectedFindings []report.Finding
|
||||
}{
|
||||
{
|
||||
source: filepath.Join(repoBasePath, "nogit"),
|
||||
cfgName: "simple",
|
||||
expectedFindings: []*report.Finding{
|
||||
expectedFindings: []report.Finding{
|
||||
{
|
||||
Description: "AWS Access Key",
|
||||
StartLine: 19,
|
||||
@@ -40,7 +40,7 @@ func TestFromFiles(t *testing.T) {
|
||||
{
|
||||
source: filepath.Join(repoBasePath, "nogit", "main.go"),
|
||||
cfgName: "simple",
|
||||
expectedFindings: []*report.Finding{
|
||||
expectedFindings: []report.Finding{
|
||||
{
|
||||
Description: "AWS Access Key",
|
||||
StartLine: 19,
|
||||
|
||||
Reference in new issue
Block a user