mirror of
https://github.com/github/codeql.git
synced 2026-04-26 01:05:15 +02:00
Rb: Report any extracted file as successfully extracted
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
/**
|
||||
* @name Successfully extracted files
|
||||
* @description Lists all files in the source code directory that were extracted
|
||||
* without encountering an error in the file.
|
||||
* @name Extracted files
|
||||
* @description Lists all files in the source code directory that were extracted.
|
||||
* @kind diagnostic
|
||||
* @id rb/diagnostics/successfully-extracted-files
|
||||
* @tags successfully-extracted-files
|
||||
@@ -11,7 +10,5 @@ import codeql.ruby.AST
|
||||
import codeql.ruby.Diagnostics
|
||||
|
||||
from File f
|
||||
where
|
||||
not exists(ExtractionError e | e.getLocation().getFile() = f) and
|
||||
exists(f.getRelativePath())
|
||||
where exists(f.getRelativePath())
|
||||
select f, ""
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
| src/bar.erb:0:0:0:0 | src/bar.erb | |
|
||||
| src/foo.rb:0:0:0:0 | src/foo.rb | |
|
||||
| src/not_ruby.rb:0:0:0:0 | src/not_ruby.rb | |
|
||||
| src/vendor/cache/lib.rb:0:0:0:0 | src/vendor/cache/lib.rb | |
|
||||
|
||||
Reference in New Issue
Block a user