diff --git a/scripts/shellcheck_job.py b/scripts/shellcheck_job.py index 812555677..c7b6433e1 100755 --- a/scripts/shellcheck_job.py +++ b/scripts/shellcheck_job.py @@ -73,6 +73,14 @@ def find(obj: dict, key: str, result=None, path="") -> list[tuple]: maybe_result = find(v, key, result, subpath) if maybe_result is not result: result.append((subpath, maybe_result[-1])) + elif isinstance(v, list): + for index, item in enumerate(v): + if not isinstance(item, dict): + continue + subpath = f"{path}.{index}" + maybe_result = find(item, key, result, subpath) + if maybe_result is not result: + result.append((subpath, maybe_result[-1])) return result