Skip to content

Commit e30a0d1

Browse files
committed
JS: Report any extracted file as successfully extracted
1 parent 8144d90 commit e30a0d1

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed
Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
2-
* @name Successfully extracted files
3-
* @description Lists all files in the source code directory that were extracted without encountering an error in the file.
2+
* @name Extracted files
3+
* @description Lists all files in the source code directory that were extracted.
44
* @kind diagnostic
55
* @id js/diagnostics/successfully-extracted-files
66
* @tags successfully-extracted-files
@@ -9,7 +9,5 @@
99
import javascript
1010

1111
from File f
12-
where
13-
not exists(Error e | e.isFatal() and e.getFile() = f) and
14-
exists(f.getRelativePath())
12+
where exists(f.getRelativePath())
1513
select f, ""

javascript/ql/test/query-tests/Diagnostics/SuccessfullyExtractedFiles.expected

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
| bad1.js:0:0:0:0 | bad1.js | |
2+
| bad2.ts:0:0:0:0 | bad2.ts | |
3+
| bad3.html:0:0:0:0 | bad3.html | |
14
| contains-template.js:0:0:0:0 | contains-template.js | |
25
| good1.js:0:0:0:0 | good1.js | |
36
| good2.ts:0:0:0:0 | good2.ts | |

0 commit comments

Comments
 (0)