mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Move 'snippet' queries to 'snippets' folders
This commit is contained in:
13
python/ql/examples/snippets/builtin_object.ql
Normal file
13
python/ql/examples/snippets/builtin_object.ql
Normal file
@@ -0,0 +1,13 @@
|
||||
/**
|
||||
* @name Builtin objects
|
||||
* @description Finds expressions that refer to an object in the builtins module (like int or None).
|
||||
* @tags reference
|
||||
* builtin
|
||||
* object
|
||||
*/
|
||||
|
||||
import python
|
||||
|
||||
from Expr e
|
||||
where e.refersTo(builtin_object(_))
|
||||
select e
|
||||
Reference in New Issue
Block a user