diff --git a/ql/src/queries/summary/NumberOfSuccesfullyExtractedFiles.ql b/ql/src/queries/summary/NumberOfSuccesfullyExtractedFiles.ql new file mode 100644 index 00000000000..e89f1350962 --- /dev/null +++ b/ql/src/queries/summary/NumberOfSuccesfullyExtractedFiles.ql @@ -0,0 +1,13 @@ +/** + * @id rb/summary/number-of-successfully-extracted-files + * @name Total number of files that were extracted without error. + * @description The total number of Ruby code files that we extracted without + * encountering any extraction errors + * @kind metric + * @tags summary + */ + +import ruby +import codeql_ruby.Diagnostics + +select count(File f | not exists(ExtractionError e | e.getLocation().getFile() = f))