|
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).
django-DefectDojo/dojo/tools/semgrep/parser.py
Line 52 in 2f25c45
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
linemake de-duplication fail very often (as anything added before the code snippet would change it and create new finding).