From 54266eca3359ddec14cbfdebf8a4682692f0035e Mon Sep 17 00:00:00 2001 From: Alex Ford Date: Fri, 7 May 2021 00:17:12 +0100 Subject: [PATCH] rb/diagnostics/files-extracted-with-errors --- .../diagnostics/FilesExtractedWithErrors.ql | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 ql/src/queries/diagnostics/FilesExtractedWithErrors.ql diff --git a/ql/src/queries/diagnostics/FilesExtractedWithErrors.ql b/ql/src/queries/diagnostics/FilesExtractedWithErrors.ql new file mode 100644 index 00000000000..8db409eefd1 --- /dev/null +++ b/ql/src/queries/diagnostics/FilesExtractedWithErrors.ql @@ -0,0 +1,14 @@ +/** + * @name Files extracted with errors + * @description Lists files that were extracted, but may be incomplete due to + * extraction errors. + * @kind diagnostic + * @id rb/diagnostics/files-extracted-with-errors + */ + +import ruby +import codeql_ruby.Diagnostics + +from File f +where exists(ExtractionError e | e.getLocation().getFile() = f) +select f, ""