mirror of
https://github.com/github/codeql.git
synced 2025-12-24 12:46:34 +01:00
19 lines
511 B
Plaintext
19 lines
511 B
Plaintext
/**
|
|
* @name NotImplemented is not an Exception
|
|
* @description Using 'NotImplemented' as an exception will result in a type error.
|
|
* @kind problem
|
|
* @problem.severity warning
|
|
* @sub-severity high
|
|
* @precision very-high
|
|
* @id py/raise-not-implemented
|
|
* @tags reliability
|
|
* maintainability
|
|
*/
|
|
|
|
import python
|
|
import Exceptions.NotImplemented
|
|
|
|
from Expr notimpl
|
|
where use_of_not_implemented_in_raise(_, notimpl)
|
|
select notimpl, "NotImplemented is not an Exception. Did you mean NotImplementedError?"
|