mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-28 12:14:22 +01:00
ignore end line when comparing generic rules (#879)
This commit is contained in:
1 parent
469cd22f61
commit
e9ebde73bc
1 file changed
-1
@@ -65,7 +65,6 @@ func filter(findings []report.Finding, redact bool) []report.Finding {
|
||||
if strings.Contains(strings.ToLower(f.RuleID), "generic") {
|
||||
for _, fPrime := range findings {
|
||||
if f.StartLine == fPrime.StartLine &&
|
||||
f.EndLine == fPrime.EndLine &&
|
||||
f.Commit == fPrime.Commit &&
|
||||
f.RuleID != fPrime.RuleID &&
|
||||
strings.Contains(fPrime.Secret, f.Secret) &&
|
||||
|
||||
Reference in new issue
Block a user