Skip to content

Commit 65b33f3

Browse files
committed
Rust: Improve rust/summary/summary-statistics organization.
1 parent 5a037bc commit 65b33f3

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

rust/ql/src/queries/summary/SummaryStats.ql

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,18 +56,18 @@ where
5656
or
5757
key = "Macro calls - unresolved" and value = count(MacroCall mc | not mc.hasExpanded())
5858
or
59-
key = "Taint sources - total" and value = count(ThreatModelSource s)
60-
or
6159
key = "Taint sources - active" and value = count(ActiveThreatModelSource s)
6260
or
61+
key = "Taint sources - disabled" and value = count(ThreatModelSource s | not s instanceof ActiveThreatModelSource)
62+
or
63+
key = "Taint sources - sensitive data" and value = count(SensitiveData d)
64+
or
6365
key = "Taint edges - number of edges" and value = getTaintEdgesCount()
6466
or
6567
key = "Taint reach - nodes tainted" and value = getTaintedNodesCount()
6668
or
6769
key = "Taint reach - per million nodes" and value = getTaintReach().floor()
6870
or
69-
key = "Sensitive data" and value = count(SensitiveData d)
70-
or
7171
key = "Taint sinks - query sinks" and value = getQuerySinksCount()
7272
or
7373
key = "Taint sinks - cryptographic operations" and

rust/ql/test/query-tests/diagnostics/SummaryStats.expected

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
| Macro calls - resolved | 8 |
1515
| Macro calls - total | 9 |
1616
| Macro calls - unresolved | 1 |
17-
| Sensitive data | 0 |
1817
| Taint edges - number of edges | 2 |
1918
| Taint reach - nodes tainted | 0 |
2019
| Taint reach - per million nodes | 0 |
2120
| Taint sinks - cryptographic operations | 0 |
2221
| Taint sinks - query sinks | 0 |
2322
| Taint sources - active | 0 |
24-
| Taint sources - total | 0 |
23+
| Taint sources - disabled | 0 |
24+
| Taint sources - sensitive data | 0 |

0 commit comments

Comments
 (0)