mirror of
https://github.com/github/codeql.git
synced 2025-12-21 19:26:31 +01:00
Java: update model exclusions logic to cope with new automodel test location
This commit is contained in:
@@ -27,7 +27,7 @@ class TestLibrary extends RefType {
|
||||
/** Holds if the given file is a test file. */
|
||||
private predicate isInTestFile(File file) {
|
||||
file.getAbsolutePath().matches(["%/test/%", "%/guava-tests/%", "%/guava-testlib/%"]) and
|
||||
not file.getAbsolutePath().matches("%/ql/test/%") // allows our test cases to work
|
||||
not file.getAbsolutePath().matches(["%/ql/test/%", "%/ql/automodel/test/%"]) // allows our test cases to work
|
||||
}
|
||||
|
||||
/** Holds if the given compilation unit's package is a JDK internal. */
|
||||
|
||||
Reference in New Issue
Block a user