mirror of
https://github.com/github/codeql.git
synced 2026-04-28 10:15:14 +02:00
Exclude .kt files from autoboxing query
This commit is contained in:
@@ -72,12 +72,16 @@ predicate rebox(Assignment e, Variable v) {
|
||||
|
||||
from Expr e, string conv
|
||||
where
|
||||
boxed(e) and conv = "This expression is implicitly boxed."
|
||||
or
|
||||
unboxed(e) and conv = "This expression is implicitly unboxed."
|
||||
or
|
||||
exists(Variable v | rebox(e, v) |
|
||||
conv =
|
||||
"This expression implicitly unboxes, updates, and reboxes the value of '" + v.getName() + "'."
|
||||
e.getFile().isJavaSourceFile() and
|
||||
(
|
||||
boxed(e) and conv = "This expression is implicitly boxed."
|
||||
or
|
||||
unboxed(e) and conv = "This expression is implicitly unboxed."
|
||||
or
|
||||
exists(Variable v | rebox(e, v) |
|
||||
conv =
|
||||
"This expression implicitly unboxes, updates, and reboxes the value of '" + v.getName() +
|
||||
"'."
|
||||
)
|
||||
)
|
||||
select e, conv
|
||||
|
||||
Reference in New Issue
Block a user