We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b6d57d commit 8c7bf69Copy full SHA for 8c7bf69
ql/ql/src/queries/style/DBTypeInNonLib.ql
@@ -10,10 +10,13 @@
10
11
import ql
12
13
+/** Gets a folder that may contain raw DB types. */
14
+string folderWithDbTypes() { result = ["lib", "downgrades", "upgrades"] }
15
+
16
from TypeExpr te
17
where
18
te.isDBType() and
- not te.getLocation().getFile().getAbsolutePath().matches("%/lib/%") and
19
+ not te.getLocation().getFile().getAbsolutePath().matches("%/" + folderWithDbTypes() + "/%") and
20
exists(File f | f.getAbsolutePath().matches("%/lib/%")) and
21
// it is needed in one case.
22
not te = any(Class c | c.getName() = "SuppressionScope").getASuperType() and
0 commit comments