Skip to content

Commit 04f24ad

Browse files
author
Valentijn Scholten
committed
support FINDING_DEDUPE_METHOD
1 parent be00200 commit 04f24ad

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

dojo/finding/deduplication.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -518,6 +518,12 @@ def dedupe_batch_of_findings(findings):
518518
# sort findings by id to ensure deduplication is deterministic/reproducible
519519
findings = sorted(findings, key=attrgetter("id"))
520520

521+
from dojo.utils import get_custom_method # noqa: PLC0415 -- circular import
522+
if dedupe_method := get_custom_method("FINDING_DEDUPE_METHOD"):
523+
for finding in findings:
524+
dedupe_method(finding)
525+
return
526+
521527
test = findings[0].test
522528
dedup_alg = test.deduplication_algorithm
523529

0 commit comments

Comments
 (0)