Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 86bf126 commit 0f7f90dCopy full SHA for 0f7f90d
1 file changed
java/ql/consistency-queries/kotlinTypes.ql
@@ -0,0 +1,12 @@
1
+import java
2
+
3
+predicate badKotlinType(Element e, int i) {
4
+ e = any(Expr expr | count(expr.getKotlinType()) = i)
5
+}
6
7
+from Element e, int i
8
+where e.getFile().isKotlinSourceFile()
9
+ and badKotlinType(e, i)
10
+ and i != 1
11
+select e, i
12
0 commit comments