mirror of
https://github.com/github/codeql.git
synced 2026-04-01 21:28:16 +02:00
20 lines
573 B
Plaintext
20 lines
573 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 quality
|
|
* maintainability
|
|
* readability
|
|
* 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."
|