Skip to content

Commit 5aba714

Browse files
committed
C#: Add framework coverage report
1 parent 016e8fb commit 5aba714

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
package,sink,source,summary,sink:html,source:local,summary:taint
2+
System,4,3,6,4,3,6
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
C# framework & library support
2+
================================
3+
4+
.. csv-table::
5+
:header-rows: 1
6+
:class: fullWidthTable
7+
:widths: auto
8+
9+
Framework / library,Package,Remote flow sources,Taint & value steps,Sinks (total),`CWE-079` :sub:`Cross-site scripting`
10+
System,"``System.*``, ``System``",,6,4,4
11+
Totals,,,6,4,4
12+

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,8 @@ def collect_others(): return collect_package_stats(
234234
row[1] = ", ".join("``{0}``".format(p.name)
235235
for p in sorted(other_packages, key=lambda x: x.name))
236236

237-
csvwriter.writerow(row)
237+
if any(other_packages):
238+
csvwriter.writerow(row)
238239

239240
# Collect statistics on all packages
240241
row = [row_prefix + "Totals", None]

0 commit comments

Comments
 (0)