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 1010
1111import codeql.files.FileSystem
1212
13- select count ( File f |
13+ select count ( ExtractedFile f |
1414 exists ( f .getRelativePath ( ) ) and
1515 not f instanceof SuccessfullyExtractedFile
1616 )
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ int getLinesOfCode() { result = sum(File f | f.fromSource() | f.getNumberOfLines
3535 * Gets a count of the total number of lines of code from the source code directory in the database.
3636 */
3737int getLinesOfUserCode ( ) {
38- result = sum ( File f | exists ( f .getRelativePath ( ) ) | f .getNumberOfLinesOfCode ( ) )
38+ result = sum ( File f | f . fromSource ( ) and exists ( f .getRelativePath ( ) ) | f .getNumberOfLinesOfCode ( ) )
3939}
4040
4141/**
You can’t perform that action at this time.
0 commit comments