Skip to content

Commit ff9327a

Browse files
committed
Add diagnostic query to get correctly extracted files
1 parent b05e211 commit ff9327a

File tree

4 files changed

+20
-0
lines changed

4 files changed

+20
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/**
2+
* @name Successfully extracted files
3+
* @description A list of all files in the source code directory that were extracted
4+
* without encountering an extraction error in the file.
5+
* @kind diagnostic
6+
* @id cs/diagnostics/successfully-extracted-files
7+
*/
8+
9+
import csharp
10+
import semmle.code.csharp.commons.Diagnostics
11+
12+
from File file
13+
where file.fromSource() and not exists(ExtractorError e | e.getLocation().getFile() = file)
14+
select file, ""
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
public class A
2+
{
3+
public void M() { }
4+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
| A.cs:0:0:0:0 | A.cs | |
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Diagnostics/DiagnosticNoExtractionErrors.ql

0 commit comments

Comments
 (0)