Merge pull request #14199 from github/koesie10/add-java-model-editor-queries

Java: Add VS Code model editor queries
This commit is contained in:
Koen Vlaswinkel
2023-09-28 10:13:13 +02:00
committed by GitHub
16 changed files with 354 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
}