sarif-results-summary: add codeFlow (path-problem) output, remove meta-data

The per-language result counts are removed; they belong in a separate sarif-info script.
This commit is contained in:
Michael Hohn
2021-11-20 14:49:49 -08:00
committed by =Michael Hohn
parent 29b62b8b1a
commit 85ddaaafe1
2 changed files with 43 additions and 25 deletions

View File

@@ -11,6 +11,11 @@ def get_relatedlocation_message_info(related_location):
The relatedLocation typically starts from
get(sarif_struct, 'runs', [int], 'results', [int], 'relatedLocations', [int])
For a threadFlow, extract message information for a location contained in it.
The location typically starts from
get(sarif_struct, 'runs', _i, 'results', _i, 'codeFlows', _i, 'threadFlows', _i, 'locations', _i)
"""
message = get(related_location, 'message', 'text')
artifact = get(related_location, 'physicalLocation', 'artifactLocation')