mirror of
https://github.com/github/codeql.git
synced 2026-08-02 00:13:00 +02:00
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.
8 lines
233 B
Plaintext
8 lines
233 B
Plaintext
import codeql.swift.elements.decl.internal.AccessorOrNamedFunction
|
|
|
|
from AccessorOrNamedFunction f
|
|
where
|
|
f.getLocation().getFile().getBaseName() != "Package.swift" and
|
|
exists(f.getLocation().getFile().getRelativePath())
|
|
select f
|