зеркало из https://github.com/github/codeql.git
Java: update model exclusions logic to cope with new automodel test location
This commit is contained in:
Родитель
1b31c4dd4c
Коммит
480e3bf506
|
@ -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. */
|
||||
|
|
Загрузка…
Ссылка в новой задаче