mirror of
https://github.com/hohn/sarif-cli.git
synced 2025-12-16 17:23:03 +01:00
fix: traverse all languages
This commit is contained in:
committed by
=Michael Hohn
parent
c6641019bf
commit
a0af2c8c59
@@ -4,6 +4,10 @@ MIN_PYTHON = (3, 7)
|
||||
if sys.version_info < MIN_PYTHON:
|
||||
sys.exit("Python %s.%s or later is required.\n" % MIN_PYTHON)
|
||||
|
||||
def indices(sarif_struct, *path):
|
||||
""" Return a range for the indices of PATH """
|
||||
return range(0, len(get(sarif_struct, *path)))
|
||||
|
||||
def get(sarif_struct, *path):
|
||||
""" Get the sarif entry at PATH """
|
||||
res = sarif_struct
|
||||
|
||||
Reference in New Issue
Block a user