Files
codeql/python/ql/examples/snippets/store_none.ql
2019-07-26 17:47:11 +02:00

19 lines
380 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().refersTo(theNoneObject())
select store