limit summary queries to files from within the source directory

This commit is contained in:
Alex Ford
2021-05-11 21:07:08 +01:00
parent 49d9bb798c
commit 0016146e11
2 changed files with 6 additions and 2 deletions

View File

@@ -10,4 +10,6 @@
import ruby
import codeql_ruby.Diagnostics
select count(File f | exists(ExtractionError e | e.getLocation().getFile() = f))
select count(File f |
exists(ExtractionError e | e.getLocation().getFile() = f) and exists(f.getRelativePath())
)

View File

@@ -10,4 +10,6 @@
import ruby
import codeql_ruby.Diagnostics
select count(File f | not exists(ExtractionError e | e.getLocation().getFile() = f))
select count(File f |
not exists(ExtractionError e | e.getLocation().getFile() = f) and exists(f.getRelativePath())
)