Skip to content

Commit d8eef27

Browse files
authored
Merge pull request #15360 from github/mbg/csharp/redefine-successfully-extracted-files
2 parents cda2ef4 + d0003ce commit d8eef27

File tree

6 files changed

+9
-7
lines changed

6 files changed

+9
-7
lines changed
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.
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @name Successfully extracted files
2+
* @name Extracted files
33
* @description A list of all files in the source code directory that were extracted
44
* without encountering an extraction or compiler error in the file.
55
* @kind diagnostic
@@ -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, ""

csharp/ql/test/library-tests/diagnostics/DiagnosticNoExtractorErrors.expected

-1
This file was deleted.

csharp/ql/test/library-tests/diagnostics/DiagnosticNoExtractorErrors.qlref

-1
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
| A.cs:0:0:0:0 | A.cs | |
2+
| Program.cs:0:0:0:0 | Program.cs | |
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Diagnostics/ExtractedFiles.ql

0 commit comments

Comments
 (0)