mirror of
https://github.com/github/codeql.git
synced 2026-01-06 11:10:23 +01:00
Kotlin: Add FP test case for dead code queries
This commit is contained in:
@@ -15,6 +15,8 @@ import semmle.code.java.deadcode.DeadCode
|
||||
|
||||
from DeadField f, Element origin, string reason
|
||||
where
|
||||
not f.getFile().isKotlinSourceFile() and
|
||||
not origin.getFile().isKotlinSourceFile() and
|
||||
not f.isInDeadScope() and
|
||||
if f.getAnAccess() instanceof FieldRead
|
||||
then (
|
||||
|
||||
Reference in New Issue
Block a user