Files
codeql/javascript/ql/src/Comments/TodoComments.ql
Anders Schack-Mulligen e58094c732 Javascript: Autoformat.
2019-01-11 11:02:42 +01:00

18 lines
535 B
Plaintext

/**
* @name TODO comment
* @description A comment that contains 'TODO' or similar keywords may indicate code that is incomplete or
* broken, or it may highlight an ambiguity in the software's specification.
* @kind problem
* @problem.severity recommendation
* @id js/todo-comment
* @tags maintainability
* external/cwe/cwe-546
* @precision medium
*/
import javascript
from Comment c
where c.getText().regexpMatch("(?s).*FIXME.*|.*TODO.*|.*(?<!=)\\s*XXX.*")
select c, "TODO comments should be addressed."