mirror of
https://github.com/github/codeql.git
synced 2026-02-19 08:23:45 +01:00
limit summary queries to files from within the source directory
This commit is contained in:
@@ -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())
|
||||
)
|
||||
|
||||
@@ -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())
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user