Adjust framework coverage report generator to include all sources not just remote ones

This commit is contained in:
Tamas Vajk 2021-06-28 09:17:00 +02:00
Родитель 4524563923
Коммит 1ec1e1cfc8
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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: