Add a severity and select the correct number of columns.

This commit is contained in:
Chris Gavin
2021-12-16 14:02:36 +00:00
parent 407c265daf
commit 4a1e2ed408

View File

@@ -3,6 +3,7 @@
* @name TODO comments
* @description Finds comments containing the word TODO
* @kind problem
* @problem.severity recommendation
* @tags comment
* TODO
*/
@@ -11,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."