mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
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:
@@ -1,4 +1,5 @@
|
||||
import swift
|
||||
|
||||
from Location l
|
||||
where exists(l.getFile().getRelativePath()) or l instanceof UnknownLocation
|
||||
select l
|
||||
|
||||
Reference in New Issue
Block a user