Swift: Make file checking in tests more strict

With Swift 6.1 the extractor will start to extract files outside of the test
directory. These files and their elements we do not want to see in our tests.

Test forgotten in https://github.com/github/codeql/pull/19344
This commit is contained in:
Jeroen Ketema
2025-04-22 16:51:36 +02:00
parent a211998bc9
commit adb58e304d

View File

@@ -1,4 +1,5 @@
import swift
from Location l
where exists(l.getFile().getRelativePath()) or l instanceof UnknownLocation
select l