mirror of
https://github.com/hohn/sarif-cli.git
synced 2025-12-16 17:23:03 +01:00
use python 3 'key in dict' idiom
This commit is contained in:
committed by
=Michael Hohn
parent
e4cee2b6a6
commit
2d1180a515
@@ -36,7 +36,7 @@ for runi in S.indices(sarif_struct, 'runs'):
|
||||
# Locations for @kind path-problem
|
||||
# e.g. sarif_struct['runs'][0]['results'][22]['codeFlows'][0]['threadFlows'][0]['locations'][1]['location']
|
||||
for resi in S.indices(sarif_struct, 'runs', runi, 'results'):
|
||||
if 'codeFlows' in S.get(sarif_struct, 'runs', runi, 'results', resi).keys():
|
||||
if 'codeFlows' in S.get(sarif_struct, 'runs', runi, 'results', resi):
|
||||
locations = S.get(sarif_struct, 'runs', runi, 'results', resi, 'codeFlows', 0,
|
||||
'threadFlows', 0, 'locations')
|
||||
for loci in range(0, len(locations)):
|
||||
|
||||
Reference in New Issue
Block a user