mirror of
https://github.com/github/codeql.git
synced 2026-04-29 18:55:14 +02:00
Permit CodeQL's own tests
Removing `%/test/%` accidentally removed our own test cases. Co-authored-by: Jami <57204504+jcogs33@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
83d5cde01d
commit
fc3c776bdc
@@ -27,7 +27,8 @@ private J::Method superImpl(J::Method m) {
|
||||
}
|
||||
|
||||
private predicate isInTestFile(J::File file) {
|
||||
file.getAbsolutePath().matches(["%/test/%", "%/guava-tests/%", "%/guava-testlib/%"])
|
||||
file.getAbsolutePath().matches(["%/test/%", "%/guava-tests/%", "%/guava-testlib/%"]) and
|
||||
not file.getAbsolutePath().matches("%/ql/test/%") // allows our test cases to work
|
||||
}
|
||||
|
||||
private predicate isJdkInternal(J::CompilationUnit cu) {
|
||||
|
||||
Reference in New Issue
Block a user