File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
rust/ql/src/queries/summary Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 10
10
11
11
import codeql.files.FileSystem
12
12
13
- select count ( File f |
13
+ select count ( ExtractedFile f |
14
14
exists ( f .getRelativePath ( ) ) and
15
15
not f instanceof SuccessfullyExtractedFile
16
16
)
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ int getLinesOfCode() { result = sum(File f | f.fromSource() | f.getNumberOfLines
35
35
* Gets a count of the total number of lines of code from the source code directory in the database.
36
36
*/
37
37
int getLinesOfUserCode ( ) {
38
- result = sum ( File f | exists ( f .getRelativePath ( ) ) | f .getNumberOfLinesOfCode ( ) )
38
+ result = sum ( File f | f . fromSource ( ) and exists ( f .getRelativePath ( ) ) | f .getNumberOfLinesOfCode ( ) )
39
39
}
40
40
41
41
/**
You can’t perform that action at this time.
0 commit comments