Skip to content

Commit

Permalink
ignore end line when comparing generic rules (#879)
Browse files Browse the repository at this point in the history
  • Loading branch information
zricethezav committed May 28, 2022
1 parent 469cd22 commit e9ebde7
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion detect/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) &&
Expand Down

0 comments on commit e9ebde7

Please sign in to comment.