mirror of
https://github.com/github/codeql.git
synced 2026-04-27 09:45:15 +02:00
Java/Kotlin: Add UnaryExpr consistency query
This commit is contained in:
6
java/ql/consistency-queries/UnaryExpr.ql
Normal file
6
java/ql/consistency-queries/UnaryExpr.ql
Normal file
@@ -0,0 +1,6 @@
|
||||
import java
|
||||
|
||||
from UnaryExpr ue
|
||||
where not exists(ue.getExpr())
|
||||
or exists(Expr e, int i | e.isNthChildOf(ue, i) and i != 0)
|
||||
select ue
|
||||
Reference in New Issue
Block a user