Skip to content

Commit 480e3bf

Browse files
author
Stephan Brandauer
committed
Java: update model exclusions logic to cope with new automodel test location
1 parent 1b31c4d commit 480e3bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/ql/lib/semmle/code/java/dataflow/internal/ModelExclusions.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class TestLibrary extends RefType {
2727
/** Holds if the given file is a test file. */
2828
private predicate isInTestFile(File file) {
2929
file.getAbsolutePath().matches(["%/test/%", "%/guava-tests/%", "%/guava-testlib/%"]) and
30-
not file.getAbsolutePath().matches("%/ql/test/%") // allows our test cases to work
30+
not file.getAbsolutePath().matches(["%/ql/test/%", "%/ql/automodel/test/%"]) // allows our test cases to work
3131
}
3232

3333
/** Holds if the given compilation unit's package is a JDK internal. */

0 commit comments

Comments
 (0)