mirror of
https://github.com/github/codeql.git
synced 2025-12-20 10:46:30 +01: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