ignore end line when comparing generic rules (#879)

This commit is contained in:
Zachary Rice authored and GitHub committed 2022-05-28 09:49:27 -05:00
1 parent 469cd22f61
commit e9ebde73bc
1 file changed
-1
-1
View File
@@ -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) &&