Java: Account for the repo move in NonSecurityTestClass.

This commit is contained in:
Anders Schack-Mulligen
2019-02-05 14:31:40 +01:00
parent a29f615da0
commit fe7add77d2

View File

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