Merge pull request #15360 from github/mbg/csharp/redefine-successfully-extracted-files

This commit is contained in:
Michael B. Gale
2024-01-18 14:09:20 +00:00
committed by GitHub
6 changed files with 9 additions and 7 deletions

View File

@@ -0,0 +1,4 @@
---
category: minorAnalysis
---
* The diagnostic query `cs/diagnostics/successfully-extracted-files`, and therefore the Code Scanning UI measure of scanned C# files, now considers any C# file seen during extraction, even one with some errors, to be extracted / scanned.

View File

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

View File

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

View File

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

View File

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

View File

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