mirror of
https://github.com/github/codeql.git
synced 2026-04-25 16:55:19 +02:00
Change multiple match calls to set literal
This commit is contained in:
@@ -27,10 +27,8 @@ private J::Method superImpl(J::Method m) {
|
||||
}
|
||||
|
||||
private predicate isInTestFile(J::File file) {
|
||||
file.getAbsolutePath().matches("%src/test/%") or
|
||||
file.getAbsolutePath().matches("%/guava-tests/%") or
|
||||
file.getAbsolutePath().matches("%/guava-testlib/%") or
|
||||
file.getAbsolutePath().matches("%/groovy-stubs/test/%")
|
||||
file.getAbsolutePath()
|
||||
.matches(["%src/test/%", "%/guava-tests/%", "%/guava-testlib/%", "%/groovy-stubs/test/%"])
|
||||
}
|
||||
|
||||
private predicate isJdkInternal(J::CompilationUnit cu) {
|
||||
|
||||
Reference in New Issue
Block a user