mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Add a severity and select the correct number of columns.
This commit is contained in:
@@ -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."
|
||||
|
||||
Reference in New Issue
Block a user