mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
16 lines
360 B
Plaintext
16 lines
360 B
Plaintext
/**
|
|
* @id js/examples/todocomment
|
|
* @name TODO comments
|
|
* @description Finds comments containing the word TODO
|
|
* @kind problem
|
|
* @problem.severity recommendation
|
|
* @tags comment
|
|
* TODO
|
|
*/
|
|
|
|
import javascript
|
|
|
|
from Comment c
|
|
where c.getText().regexpMatch("(?si).*\\bTODO\\b.*")
|
|
select c, "TODO comments indicate that the code may not be complete."
|