mirror of
https://github.com/github/codeql.git
synced 2025-12-20 10:46:30 +01:00
Python: Moves dependent queries to suffixed predicate names
This commit is contained in:
@@ -16,6 +16,6 @@ import Raising
|
||||
import Exceptions.NotImplemented
|
||||
|
||||
from Raise r, ClassObject t
|
||||
where type_or_typeof(r, t, _) and not t.isLegalExceptionType() and not t.failedInference() and not use_of_not_implemented_in_raise(r, _)
|
||||
where type_or_typeof(r, t, _) and not t.isLegalExceptionType() and not t.failedInference() and not use_of_not_implemented_in_raise_objectapi(r, _)
|
||||
select r, "Illegal class '" + t.getName() + "' raised; will result in a TypeError being raised instead."
|
||||
|
||||
|
||||
@@ -14,6 +14,6 @@ import python
|
||||
import Exceptions.NotImplemented
|
||||
|
||||
from Expr notimpl
|
||||
where use_of_not_implemented_in_raise(_, notimpl)
|
||||
where use_of_not_implemented_in_raise_objectapi(_, notimpl)
|
||||
|
||||
select notimpl, "NotImplemented is not an Exception. Did you mean NotImplementedError?"
|
||||
|
||||
Reference in New Issue
Block a user