Skip to content

Commit 8fabbd6

Browse files
authored
Merge pull request #7422 from github/todo-comment-kind
Add `kind` metadata to example query.
2 parents e3b2eed + 4a1e2ed commit 8fabbd6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

javascript/ql/examples/snippets/todocomment.ql

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
* @id js/examples/todocomment
33
* @name TODO comments
44
* @description Finds comments containing the word TODO
5+
* @kind problem
6+
* @problem.severity recommendation
57
* @tags comment
68
* TODO
79
*/
@@ -10,4 +12,4 @@ import javascript
1012

1113
from Comment c
1214
where c.getText().regexpMatch("(?si).*\\bTODO\\b.*")
13-
select c
15+
select c, "TODO comments indicate that the code may not be complete."

0 commit comments

Comments
 (0)