Files
codeql/javascript/ql/examples/snippets/todocomment.ql
2019-08-02 15:33:40 +02:00

14 lines
246 B
Plaintext

/**
* @id js/examples/todocomment
* @name TODO comments
* @description Finds comments containing the word TODO
* @tags comment
* TODO
*/
import javascript
from Comment c
where c.getText().regexpMatch("(?si).*\\bTODO\\b.*")
select c