Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5df50c0 commit 62d0cf7Copy full SHA for 62d0cf7
2 files changed
rust/ql/src/queries/summary/NumberOfFilesExtractedWithErrors.ql
@@ -10,7 +10,7 @@
10
11
import codeql.files.FileSystem
12
13
-select count(File f |
+select count(ExtractedFile f |
14
exists(f.getRelativePath()) and
15
not f instanceof SuccessfullyExtractedFile
16
)
rust/ql/src/queries/summary/Stats.qll
@@ -35,7 +35,7 @@ int getLinesOfCode() { result = sum(File f | f.fromSource() | f.getNumberOfLines
35
* Gets a count of the total number of lines of code from the source code directory in the database.
36
*/
37
int getLinesOfUserCode() {
38
- result = sum(File f | exists(f.getRelativePath()) | f.getNumberOfLinesOfCode())
+ result = sum(File f | f.fromSource() and exists(f.getRelativePath()) | f.getNumberOfLinesOfCode())
39
}
40
41
/**
0 commit comments