mirror of
https://github.com/github/codeql.git
synced 2026-02-10 20:21:10 +01:00
Ignore overridden predicates in consistency check
This commit is contained in:
@@ -287,7 +287,9 @@ module PredConsistency {
|
||||
strictcount(PredicateOrBuiltin p0 |
|
||||
resolveCall(call, p0) and
|
||||
// aliases are expected to resolve to multiple.
|
||||
not exists(p0.getDeclaration().(ClasslessPredicate).getAlias())
|
||||
not exists(p0.getDeclaration().(ClasslessPredicate).getAlias()) and
|
||||
// overridden predicates may have multiple targets
|
||||
not p0.getDeclaration().(ClassPredicate).isOverride()
|
||||
) and
|
||||
c > 1 and
|
||||
resolveCall(call, p)
|
||||
|
||||
Reference in New Issue
Block a user