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%") ) }