File tree Expand file tree Collapse file tree 2 files changed +20
-3
lines changed
test/query-tests/diagnostics Expand file tree Collapse file tree 2 files changed +20
-3
lines changed Original file line number Diff line number Diff line change 7
7
*/
8
8
9
9
import rust
10
+ import codeql.rust.Diagnostics
10
11
import Stats
11
12
12
13
from string key , string value
13
14
where
14
- key = "Files extracted" and value = count ( File f | exists ( f .getRelativePath ( ) ) ) .toString ( )
15
- or
16
15
key = "Elements extracted" and value = count ( Element e | not e instanceof Unextracted ) .toString ( )
17
16
or
18
17
key = "Elements unextracted" and value = count ( Unextracted e ) .toString ( )
19
18
or
19
+ key = "Extraction errors" and value = count ( ExtractionError e ) .toString ( )
20
+ or
21
+ key = "Extraction warnings" and value = count ( ExtractionWarning w ) .toString ( )
22
+ or
23
+ key = "Files extracted - total" and value = count ( File f | exists ( f .getRelativePath ( ) ) ) .toString ( )
24
+ or
25
+ key = "Files extracted - with errors" and
26
+ value =
27
+ count ( File f | exists ( f .getRelativePath ( ) ) and not f instanceof SuccessfullyExtractedFile )
28
+ .toString ( )
29
+ or
30
+ key = "Files extracted - without errors" and
31
+ value = count ( SuccessfullyExtractedFile f | exists ( f .getRelativePath ( ) ) ) .toString ( )
32
+ or
20
33
key = "Lines of code extracted" and value = getLinesOfCode ( ) .toString ( )
21
34
or
22
35
key = "Lines of user code extracted" and value = getLinesOfUserCode ( ) .toString ( )
Original file line number Diff line number Diff line change 1
1
| Elements extracted | 210 |
2
2
| Elements unextracted | 0 |
3
- | Files extracted | 6 |
3
+ | Extraction errors | 6 |
4
+ | Extraction warnings | 0 |
5
+ | Files extracted - total | 6 |
6
+ | Files extracted - with errors | 1 |
7
+ | Files extracted - without errors | 5 |
4
8
| Lines of code extracted | 48 |
5
9
| Lines of user code extracted | 48 |
You can’t perform that action at this time.
0 commit comments