We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be00200 commit 04f24adCopy full SHA for 04f24ad
1 file changed
dojo/finding/deduplication.py
@@ -518,6 +518,12 @@ def dedupe_batch_of_findings(findings):
518
# sort findings by id to ensure deduplication is deterministic/reproducible
519
findings = sorted(findings, key=attrgetter("id"))
520
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
+
527
test = findings[0].test
528
dedup_alg = test.deduplication_algorithm
529
0 commit comments