From fe7add77d23c0ee015d1057b1987f89b74bdbb53 Mon Sep 17 00:00:00 2001 From: Anders Schack-Mulligen Date: Tue, 5 Feb 2019 14:31:40 +0100 Subject: [PATCH] Java: Account for the repo move in NonSecurityTestClass. --- java/ql/src/semmle/code/java/security/SecurityTests.qll | 1 + 1 file changed, 1 insertion(+) diff --git a/java/ql/src/semmle/code/java/security/SecurityTests.qll b/java/ql/src/semmle/code/java/security/SecurityTests.qll index d22d1246c61..c8a39123afa 100644 --- a/java/ql/src/semmle/code/java/security/SecurityTests.qll +++ b/java/ql/src/semmle/code/java/security/SecurityTests.qll @@ -7,6 +7,7 @@ class NonSecurityTestClass extends TestClass { NonSecurityTestClass() { not exists(RefType s | this.getASupertype*().getSourceDeclaration() = s and s.fromSource() | s.getLocation().getFile().getAbsolutePath().matches("%semmle%") or + s.getLocation().getFile().getAbsolutePath().matches("%ql/java/ql/test/%") or s.getLocation().getFile().getAbsolutePath().matches("%CWE%") ) }