Merge pull request #7422 from github/todo-comment-kind

Add `kind` metadata to example query.
This commit is contained in:
Chris Gavin
2021-12-16 16:36:15 +00:00
committed by GitHub

View File

@@ -2,6 +2,8 @@
* @id js/examples/todocomment
* @name TODO comments
* @description Finds comments containing the word TODO
* @kind problem
* @problem.severity recommendation
* @tags comment
* TODO
*/
@@ -10,4 +12,4 @@ import javascript
from Comment c
where c.getText().regexpMatch("(?si).*\\bTODO\\b.*")
select c
select c, "TODO comments indicate that the code may not be complete."