mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
Move 'snippet' queries to 'snippets' folders
This commit is contained in:
12
python/ql/examples/snippets/recursion.ql
Normal file
12
python/ql/examples/snippets/recursion.ql
Normal file
@@ -0,0 +1,12 @@
|
||||
/**
|
||||
* @name Recursion
|
||||
* @description Finds functions that call themselves
|
||||
* @tags method
|
||||
* recursion
|
||||
*/
|
||||
|
||||
import python
|
||||
|
||||
from FunctionObject f
|
||||
where f.getACallee() = f
|
||||
select f
|
||||
Reference in New Issue
Block a user