Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dfdb66f

Browse files
committed
Python: Allow any results.bqrs file
1 parent 77a4d81 commit dfdb66f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

python/ql/src/meta/ClassHierarchy/process-mrva-results.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ def parse_from_file(path: Path) -> set:
4545
return set(tuple(x) for x in raw_data["extensions"][0]["data"])
4646

4747

48-
def gather_from_mrva():
49-
for f in glob.glob(f"{sys.argv[1]}/**/results/results.bqrs", recursive=True):
48+
def gather_from_bqrs_results():
49+
for f in glob.glob(f"{sys.argv[1]}/**/results.bqrs", recursive=True):
5050
print(f"Processing {f}")
5151

5252
json_data = subprocess.check_output(["codeql", "bqrs", "decode", "--format=json", f])
@@ -64,7 +64,7 @@ def gather_from_existing():
6464
pkg = f.split("/")[-1].split(".")[0][5:]
6565
package_data[pkg].update(all_data)
6666

67-
gather_from_mrva()
67+
gather_from_bqrs_results()
6868

6969
for pkg in package_data:
7070
pkg_path = mad_path / f"auto-{pkg}.model.yml"

0 commit comments

Comments
 (0)