Skip to content

Commit 1ec1e1c

Browse files
committed
Adjust framework coverage report generator to include all sources not just remote ones
1 parent 4524563 commit 1ec1e1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

misc/scripts/library-coverage/generate-report.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def collect_package_stats(packages: pack.PackageCollection, cwes, filter):
4747
package: pack.Package = package
4848
if filter(package):
4949
processed_packages.add(package)
50-
sources += package.get_kind_count("source:remote")
50+
sources += package.get_part_count("source")
5151
steps += package.get_part_count("summary")
5252
sinks += package.get_part_count("sink")
5353

@@ -188,7 +188,7 @@ def add_package_stats_to_row(row, sorted_cwes, collect):
188188
# Write CSV header.
189189
headers = [row_prefix + "Framework / library",
190190
"Package",
191-
"Remote flow sources",
191+
"Flow sources",
192192
"Taint & value steps",
193193
"Sinks (total)"]
194194
for cwe in sorted_cwes:

0 commit comments

Comments
 (0)