From 1ec1e1cfc89213723d7c2f4e65cfb26323425d03 Mon Sep 17 00:00:00 2001 From: Tamas Vajk Date: Mon, 28 Jun 2021 09:17:00 +0200 Subject: [PATCH] Adjust framework coverage report generator to include all sources not just remote ones --- misc/scripts/library-coverage/generate-report.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/scripts/library-coverage/generate-report.py b/misc/scripts/library-coverage/generate-report.py index 4f6001ae33d..7168a6cb4d6 100644 --- a/misc/scripts/library-coverage/generate-report.py +++ b/misc/scripts/library-coverage/generate-report.py @@ -47,7 +47,7 @@ def collect_package_stats(packages: pack.PackageCollection, cwes, filter): package: pack.Package = package if filter(package): processed_packages.add(package) - sources += package.get_kind_count("source:remote") + sources += package.get_part_count("source") steps += package.get_part_count("summary") sinks += package.get_part_count("sink") @@ -188,7 +188,7 @@ for lang in settings.languages: # Write CSV header. headers = [row_prefix + "Framework / library", "Package", - "Remote flow sources", + "Flow sources", "Taint & value steps", "Sinks (total)"] for cwe in sorted_cwes: