mirror of
https://github.com/github/codeql.git
synced 2026-04-29 02:35:15 +02:00
Code quality improvements + add dedicated DeadRefTypes test
This commit is contained in:
@@ -52,7 +52,7 @@ predicate dead(RefType dead) {
|
||||
// Insist all source ancestors are dead as well.
|
||||
forall(RefType t | t.fromSource() and t = getASuperTypePlus(dead) | dead(t)) and
|
||||
// Exclude compiler generated classes (e.g. declaring type of adapter functions in Kotlin)
|
||||
not compiler_generated(dead, _)
|
||||
not dead.isCompilerGenerated()
|
||||
}
|
||||
|
||||
from RefType t, string kind
|
||||
|
||||
Reference in New Issue
Block a user