mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Merge pull request #19346 from jketema/swift-files-2
Swift: Make file checking in integration tests more strict
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import swift
|
||||
|
||||
from File f
|
||||
where exists(f.getRelativePath()) or f instanceof UnknownFile
|
||||
select f
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import swift
|
||||
|
||||
from File f
|
||||
where exists(f.getRelativePath()) or f instanceof UnknownFile
|
||||
select f
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import swift
|
||||
|
||||
from File f
|
||||
where exists(f.getRelativePath()) or f instanceof UnknownFile
|
||||
select f
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import swift
|
||||
|
||||
from File f
|
||||
where exists(f.getRelativePath()) or f instanceof UnknownFile
|
||||
select f
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
import swift
|
||||
|
||||
from ClassDecl d
|
||||
where d.getLocation().getFile().getBaseName() != "Package.swift"
|
||||
where
|
||||
d.getLocation().getFile().getBaseName() != "Package.swift" and
|
||||
exists(d.getLocation().getFile().getRelativePath())
|
||||
select d
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
import swift
|
||||
|
||||
from Deinitializer d
|
||||
where d.getLocation().getFile().getBaseName() != "Package.swift"
|
||||
where
|
||||
d.getLocation().getFile().getBaseName() != "Package.swift" and
|
||||
exists(d.getLocation().getFile().getRelativePath())
|
||||
select d
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
import swift
|
||||
|
||||
from EnumDecl d
|
||||
where d.getLocation().getFile().getBaseName() != "Package.swift"
|
||||
where
|
||||
d.getLocation().getFile().getBaseName() != "Package.swift" and
|
||||
exists(d.getLocation().getFile().getRelativePath())
|
||||
select d
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
import codeql.swift.elements.decl.internal.AccessorOrNamedFunction
|
||||
|
||||
from AccessorOrNamedFunction f
|
||||
where f.getLocation().getFile().getBaseName() != "Package.swift"
|
||||
where
|
||||
f.getLocation().getFile().getBaseName() != "Package.swift" and
|
||||
exists(f.getLocation().getFile().getRelativePath())
|
||||
select f
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
import swift
|
||||
|
||||
from Initializer d
|
||||
where d.getLocation().getFile().getBaseName() != "Package.swift"
|
||||
where
|
||||
d.getLocation().getFile().getBaseName() != "Package.swift" and
|
||||
exists(d.getLocation().getFile().getRelativePath())
|
||||
select d
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
import swift
|
||||
|
||||
from ProtocolDecl d
|
||||
where d.getLocation().getFile().getBaseName() != "Package.swift"
|
||||
where
|
||||
d.getLocation().getFile().getBaseName() != "Package.swift" and
|
||||
exists(d.getLocation().getFile().getRelativePath())
|
||||
select d
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
import swift
|
||||
|
||||
from StructDecl d
|
||||
where d.getLocation().getFile().getBaseName() != "Package.swift"
|
||||
where
|
||||
d.getLocation().getFile().getBaseName() != "Package.swift" and
|
||||
exists(d.getLocation().getFile().getRelativePath())
|
||||
select d
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
import swift
|
||||
|
||||
from VarDecl d
|
||||
where d.getLocation().getFile().getBaseName() != "Package.swift"
|
||||
where
|
||||
d.getLocation().getFile().getBaseName() != "Package.swift" and
|
||||
exists(d.getLocation().getFile().getRelativePath())
|
||||
select d
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import swift
|
||||
|
||||
from File f
|
||||
where exists(f.getRelativePath()) or f instanceof UnknownFile
|
||||
select f
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import swift
|
||||
|
||||
from File f
|
||||
where exists(f.getRelativePath()) or f instanceof UnknownFile
|
||||
select f
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import swift
|
||||
|
||||
from File f
|
||||
where exists(f.getRelativePath()) or f instanceof UnknownFile
|
||||
select f
|
||||
|
||||
Reference in New Issue
Block a user