mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
14 lines
244 B
Plaintext
14 lines
244 B
Plaintext
/**
|
|
* @id py/examples/todocomment
|
|
* @name TODO comments
|
|
* @description Finds comments containing the word "TODO"
|
|
* @tags comment
|
|
* TODO
|
|
*/
|
|
|
|
import python
|
|
|
|
from Comment c
|
|
where c.getText().regexpMatch("(?si).*\\bTODO\\b.*")
|
|
select c
|