Files
codeql/python/ql/examples/snippets/builtin_object.ql
2019-08-08 10:55:45 +01:00

15 lines
337 B
Plaintext

/**
* @id py/examples/builtin-object
* @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, string name
where e.pointsTo(Value::named(name)) and not name.charAt(_) = "."
select e