mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
14 lines
241 B
Plaintext
14 lines
241 B
Plaintext
/**
|
|
* @id py/examples/recursion
|
|
* @name Recursion
|
|
* @description Finds functions that call themselves
|
|
* @tags method
|
|
* recursion
|
|
*/
|
|
|
|
import python
|
|
|
|
from PythonFunctionValue f
|
|
where f.getACall().getScope() = f.getScope()
|
|
select f
|