Skip to content

Commit 4a1e2ed

Browse files
committed
Add a severity and select the correct number of columns.
1 parent 407c265 commit 4a1e2ed

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

javascript/ql/examples/snippets/todocomment.ql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* @name TODO comments
44
* @description Finds comments containing the word TODO
55
* @kind problem
6+
* @problem.severity recommendation
67
* @tags comment
78
* TODO
89
*/
@@ -11,4 +12,4 @@ import javascript
1112

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

0 commit comments

Comments
 (0)