Skip to content

Commit 07fccf8

Browse files
committed
Rust: Add extracted + unextracted elements to summary stats.
1 parent 6ebc615 commit 07fccf8

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ from string key, string value
1313
where
1414
key = "Extracted files" and value = count(File f | exists(f.getRelativePath())).toString()
1515
or
16+
key = "Extracted elements" and value = count(Element e | not e instanceof Unextracted).toString()
17+
or
18+
key = "Unextracted elements" and value = count(Unextracted e).toString()
19+
or
1620
key = "Lines of code" and value = getLinesOfCode().toString()
1721
or
1822
key = "Lines of user code" and value = getLinesOfUserCode().toString()
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
| Extracted elements | 61 |
12
| Extracted files | 6 |
23
| Lines of code | 24 |
34
| Lines of user code | 24 |
5+
| Unextracted elements | 26 |

0 commit comments

Comments
 (0)