Skip to content

[Discovery] Avoid Duplicate Discoveries #73

@pr0me

Description

@pr0me

Problem description:
For patterns that have multiple instances that all show to the same discovery rule, there will be multiple identical entries in the discovery file. This is expected but confusing, I think.

Having multiple patterns with the same discovery rule is the outcome of a past discussion: In such cases, the instances and their code snippets act a examples of different manifestations of a testability pattern but have the same underlying problem on a code/CPG level.

Suggested solution:
During pattern discovery, collect individual discoveries as a set instead of a list, eliminating exact duplicates in the discovery report.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions