We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5bef24 commit 9c82f72Copy full SHA for 9c82f72
1 file changed
ql/src/codeql_ql/ast/internal/Predicate.qll
@@ -287,7 +287,9 @@ module PredConsistency {
287
strictcount(PredicateOrBuiltin p0 |
288
resolveCall(call, p0) and
289
// aliases are expected to resolve to multiple.
290
- not exists(p0.getDeclaration().(ClasslessPredicate).getAlias())
+ not exists(p0.getDeclaration().(ClasslessPredicate).getAlias()) and
291
+ // overridden predicates may have multiple targets
292
+ not p0.getDeclaration().(ClassPredicate).isOverride()
293
) and
294
c > 1 and
295
resolveCall(call, p)
0 commit comments