Files
codeql/ql/src/queries/diagnostics/SuccessfullyExtractedFiles.ql

17 lines
420 B
Plaintext

/**
* @name Successfully extracted files
* @description Lists all files in the source code directory that were extracted
* without encountering an error in the file.
* @kind diagnostic
* @id rb/diagnostics/successfully-extracted-files
*/
import ruby
import codeql_ruby.Diagnostics
from File f
where
not exists(ExtractionError e | e.getLocation().getFile() = f) and
exists(f.getRelativePath())
select f, ""