Files
codeql/python/ql/src/Lexical/ToDoComment.ql
2018-11-19 15:10:42 +00:00

22 lines
520 B
Plaintext

/**
* @name 'To Do' comment
* @description Writing comments that include 'TODO' tends to lead to a build up of partially
* implemented features.
* @kind problem
* @tags maintainability
* readability
* documentation
* external/cwe/cwe-546
* @problem.severity recommendation
* @sub-severity low
* @deprecated
* @precision medium
* @id py/todo-comment
*/
import python
from Comment c
where c.getText().matches("%TODO%") or c.getText().matches("%TO DO%")
select c, c.getText()