Skip to content

Commit 83d5cde

Browse files
committed
Change isInTestFile to ignore %/test/%
1 parent d1de453 commit 83d5cde

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

java/ql/src/utils/modelgenerator/internal/CaptureModelsSpecific.qll

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ private J::Method superImpl(J::Method m) {
2727
}
2828

2929
private predicate isInTestFile(J::File file) {
30-
file.getAbsolutePath()
31-
.matches(["%src/test/%", "%/guava-tests/%", "%/guava-testlib/%", "%/groovy-stubs/test/%"])
30+
file.getAbsolutePath().matches(["%/test/%", "%/guava-tests/%", "%/guava-testlib/%"])
3231
}
3332

3433
private predicate isJdkInternal(J::CompilationUnit cu) {

0 commit comments

Comments
 (0)