C#: Add framework coverage report

This commit is contained in:
Tamas Vajk
2021-06-25 10:06:43 +02:00
parent 016e8fb2cf
commit 5aba7142e8
3 changed files with 16 additions and 1 deletions

View File

@@ -0,0 +1,2 @@
package,sink,source,summary,sink:html,source:local,summary:taint
System,4,3,6,4,3,6
1 package sink source summary sink:html source:local summary:taint
2 System 4 3 6 4 3 6

View File

@@ -0,0 +1,12 @@
C# framework & library support
================================
.. csv-table::
:header-rows: 1
:class: fullWidthTable
:widths: auto
Framework / library,Package,Remote flow sources,Taint & value steps,Sinks (total),`CWE-079` :sub:`Cross-site scripting`
System,"``System.*``, ``System``",,6,4,4
Totals,,,6,4,4

View File

@@ -234,7 +234,8 @@ for lang in settings.languages:
row[1] = ", ".join("``{0}``".format(p.name)
for p in sorted(other_packages, key=lambda x: x.name))
csvwriter.writerow(row)
if any(other_packages):
csvwriter.writerow(row)
# Collect statistics on all packages
row = [row_prefix + "Totals", None]