mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Move 'snippet' queries to 'snippets' folders
This commit is contained in:
12
python/ql/examples/snippets/todocomment.ql
Normal file
12
python/ql/examples/snippets/todocomment.ql
Normal file
@@ -0,0 +1,12 @@
|
||||
/**
|
||||
* @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
|
||||
Reference in New Issue
Block a user