From a7873f9023b10ca6784f0e62cdfacf2d2b1f0bfa Mon Sep 17 00:00:00 2001 From: Alex Ford Date: Fri, 7 May 2021 00:24:13 +0100 Subject: [PATCH] rb/summary/number-of-files-extracted-with-errors --- .../summary/NumberOfFilesExtractedWithErrors.ql | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 ql/src/queries/summary/NumberOfFilesExtractedWithErrors.ql diff --git a/ql/src/queries/summary/NumberOfFilesExtractedWithErrors.ql b/ql/src/queries/summary/NumberOfFilesExtractedWithErrors.ql new file mode 100644 index 00000000000..eb871a4086d --- /dev/null +++ b/ql/src/queries/summary/NumberOfFilesExtractedWithErrors.ql @@ -0,0 +1,13 @@ +/** + * @id rb/summary/number-of-files-extracted-with-errors + * @name Total number of files that were extracted with errors + * @description The total number of Ruby code files that we extracted, but where + * at least one extraction error occurred in the process. + * @kind metric + * @tags summary + */ + +import ruby +import codeql_ruby.Diagnostics + +select count(File f | exists(ExtractionError e | e.getLocation().getFile() = f))