Add diagnostic query to get correctly extracted files

This commit is contained in:
Tamas Vajk
2021-04-21 14:41:53 +02:00
parent b05e211e21
commit ff9327a035
4 changed files with 20 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
/**
* @name Successfully extracted files
* @description A list of all files in the source code directory that were extracted
* without encountering an extraction error in the file.
* @kind diagnostic
* @id cs/diagnostics/successfully-extracted-files
*/
import csharp
import semmle.code.csharp.commons.Diagnostics
from File file
where file.fromSource() and not exists(ExtractorError e | e.getLocation().getFile() = file)
select file, ""

View File

@@ -0,0 +1,4 @@
public class A
{
public void M() { }
}

View File

@@ -0,0 +1 @@
| A.cs:0:0:0:0 | A.cs | |

View File

@@ -0,0 +1 @@
Diagnostics/DiagnosticNoExtractionErrors.ql