mirror of
https://github.com/github/codeql.git
synced 2025-12-22 19:56:32 +01:00
Kotlin: Restrict a test's results to those in the test directory
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import java
|
||||
|
||||
query predicate classExprs(Expr e, string tstr) {
|
||||
exists(e.getFile().getRelativePath()) and
|
||||
tstr = e.getType().toString() and
|
||||
tstr.matches("%Class%")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user