Skip to content

Commit b26fef8

Browse files
committed
Rb: Report any extracted file as successfully extracted
1 parent fb660b8 commit b26fef8

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/**
2-
* @name Successfully extracted files
3-
* @description Lists all files in the source code directory that were extracted
4-
* without encountering an error in the file.
2+
* @name Extracted files
3+
* @description Lists all files in the source code directory that were extracted.
54
* @kind diagnostic
65
* @id rb/diagnostics/successfully-extracted-files
76
* @tags successfully-extracted-files
@@ -11,7 +10,5 @@ import codeql.ruby.AST
1110
import codeql.ruby.Diagnostics
1211

1312
from File f
14-
where
15-
not exists(ExtractionError e | e.getLocation().getFile() = f) and
16-
exists(f.getRelativePath())
13+
where exists(f.getRelativePath())
1714
select f, ""
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
| src/bar.erb:0:0:0:0 | src/bar.erb | |
22
| src/foo.rb:0:0:0:0 | src/foo.rb | |
3+
| src/not_ruby.rb:0:0:0:0 | src/not_ruby.rb | |
34
| src/vendor/cache/lib.rb:0:0:0:0 | src/vendor/cache/lib.rb | |

0 commit comments

Comments
 (0)