Files
codeql/python/ql/examples/snippets/store_none.ql
2020-03-30 11:59:10 +02:00

19 lines
383 B
Plaintext

/**
* @id py/examples/store-none
* @name Store None to collection
* @description Finds places where `None` is used as an index when storing to a collection
* @tags None
* parameter
* argument
* collection
* add
*/
import python
from SubscriptNode store
where
store.isStore() and
store.getIndex().pointsTo(Value::named("None"))
select store