зеркало из https://github.com/github/codeql.git
Merge pull request #7422 from github/todo-comment-kind
Add `kind` metadata to example query.
This commit is contained in:
Коммит
8fabbd697e
|
@ -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."
|
||||
|
|
Загрузка…
Ссылка в новой задаче