Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
| Extraction errors | 0 |
| Extraction warnings | 0 |
| Files extracted - total | 4 |
| Files extracted - total user | 4 |
| Files extracted - with errors | 0 |
| Files extracted - without errors | 4 |
| Files extracted - without errors % | 100 |
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
| Extraction errors | 0 |
| Extraction warnings | 0 |
| Files extracted - total | 4 |
| Files extracted - total user | 4 |
| Files extracted - with errors | 0 |
| Files extracted - without errors | 4 |
| Files extracted - without errors % | 100 |
Expand Down
10 changes: 9 additions & 1 deletion rust/ql/src/queries/summary/Stats.qll
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ predicate extractionStats(string key, int value) {
key = "Extraction warnings" and
value = count(ExtractionWarning w | not exists(w.getLocation()) or w.getLocation().fromSource())
or
key = "Files extracted - total" and value = count(ExtractedFile f | exists(f.getRelativePath()))
key = "Files extracted - total user" and
value = count(ExtractedFile f | exists(f.getRelativePath()))
or
key = "Files extracted - with errors" and
value =
Expand Down Expand Up @@ -160,6 +161,13 @@ predicate extractionStats(string key, int value) {
value = count(MacroCall mc | mc.fromSource() and not mc.hasMacroCallExpansion())
}

/**
* Gets further summary statistics about extraction.
*/
predicate extractionStatsExtra(string key, int value) {
key = "Files extracted - total" and value = count(File f)
}

/**
* Gets summary statistics about inconsistencies.
*/
Expand Down
2 changes: 2 additions & 0 deletions rust/ql/src/queries/summary/SummaryStats.ql
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ where
or
extractionStats(key, value)
or
extractionStatsExtra(key, value)
or
inconsistencyStats(key, value)
or
typeInferenceInconsistencyStats(key, value)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
| Extraction errors | 0 |
| Extraction warnings | 7 |
| Files extracted - total | 7 |
| Files extracted - total user | 7 |
| Files extracted - with errors | 3 |
| Files extracted - without errors | 4 |
| Files extracted - without errors % | 57 |
Expand Down
Loading