Skip to content

semgrep: hash code fields #14707

@fopinappb

Description

@fopinappb

NOTE: uses legacy dedupe: ['title', 'cwe', 'line', 'file_path', 'description']

I see semgrep parser is using legacy hash code fields instead of custom list.

I know I can change this in my local settings (setting HASHCODE_FIELDS_PER_SCANNER for Semgrep JSON Report) but I'd like to understand if there's reasoning not to do it (or if it was just missed / noone felt impacted).

I believe CWE makes no sense for semgrep because each rule always has the same CWE.

Also, I think having line make de-duplication fail very often (as anything added before the code snippet would change it and create new finding).

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