mirror of
https://github.com/github/codeql.git
synced 2026-04-26 09:15:12 +02:00
Java: Add a variables consistency query
This commit is contained in:
7
java/ql/consistency-queries/variables.ql
Normal file
7
java/ql/consistency-queries/variables.ql
Normal file
@@ -0,0 +1,7 @@
|
||||
import java
|
||||
|
||||
from Variable v, int n
|
||||
where n = count(v.getType())
|
||||
and n != 1
|
||||
select v, n
|
||||
|
||||
Reference in New Issue
Block a user