Skip to content

Commit a307918

Browse files
committed
C#: Report any extracted file as successfully extracted
1 parent 4a71ddd commit a307918

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
category: minorAnalysis
3+
---
4+
* 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.

csharp/ql/src/Diagnostics/DiagnosticNoExtractionErrors.ql

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,5 @@ import csharp
1111
import semmle.code.csharp.commons.Diagnostics
1212

1313
from File file
14-
where
15-
file.fromSource() and
16-
not exists(ExtractorError e | e.getLocation().getFile() = file) and
17-
not exists(CompilerError e | e.getLocation().getFile() = file)
14+
where file.fromSource()
1815
select file, ""
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
| A.cs:0:0:0:0 | A.cs | |
2+
| Program.cs:0:0:0:0 | Program.cs | |

0 commit comments

Comments
 (0)