Java: Add VS Code model editor queries

This commit is contained in:
Koen Vlaswinkel
2023-09-13 13:04:26 +02:00
parent 3bf0d66d6c
commit 7db082f3fd
15 changed files with 248 additions and 1 deletions

View File

@@ -25,7 +25,7 @@ class TestLibrary extends RefType {
}
/** Holds if the given file is a test file. */
private predicate isInTestFile(File file) {
predicate isInTestFile(File file) {
file.getAbsolutePath().matches(["%/test/%", "%/guava-tests/%", "%/guava-testlib/%"]) and
not file.getAbsolutePath().matches(["%/ql/test/%", "%/ql/automodel/test/%"]) // allows our test cases to work
}