-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15385 from geoffw0/swiftfiles
Swift: Report any extracted file as successfully extracted
- Loading branch information
Showing
9 changed files
with
38 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
category: minorAnalysis | ||
--- | ||
* The diagnostic query `swift/diagnostics/successfully-extracted-files` now considers any Swift file seen during extraction, even one with some errors, to be extracted / scanned. This affects the Code Scanning UI measure of scanned Swift files. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
swift/ql/test/query-tests/Diagnostics/ExtractedFiles.expected
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
| error.swift:0:0:0:0 | error.swift | File successfully extracted. | | ||
| main.swift:0:0:0:0 | main.swift | File successfully extracted. | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
diagnostics/ExtractedFiles.ql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
| error.swift:0:0:0:0 | error.swift | query-tests/Diagnostics/error.swift | | | ||
| file://:0:0:0:0 | | | | | ||
| main.swift:0:0:0:0 | main.swift | query-tests/Diagnostics/main.swift | isSuccessfullyExtracted | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import swift | ||
|
||
string describe(File f) { (f.isSuccessfullyExtracted() and result = "isSuccessfullyExtracted") } | ||
|
||
from File f | ||
select f, concat(f.getRelativePath(), ", "), concat(describe(f), ", ") |
1 change: 0 additions & 1 deletion
1
swift/ql/test/query-tests/Diagnostics/SuccessfullyExtractedFiles.expected
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
swift/ql/test/query-tests/Diagnostics/SuccessfullyExtractedFiles.qlref
This file was deleted.
Oops, something went wrong.