From fe77e962a826ac41354a7b1b4afa08c527e86e8c Mon Sep 17 00:00:00 2001 From: Tim Chevalier Date: Thu, 12 Jul 2012 18:20:22 -0700 Subject: [PATCH] Forbid TODO in tidy Forbid TODO as either a sneaky or an accidental way of evading the requirement to annotate FIXMEs with issue numbers. Of course, there are many other ways to evade this requirement, but one should draw the line somewhere... --- src/etc/tidy.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/etc/tidy.py b/src/etc/tidy.py index 51e13e7af19d..f042728b4624 100644 --- a/src/etc/tidy.py +++ b/src/etc/tidy.py @@ -28,6 +28,8 @@ try: if line.find("FIXME") != -1: if re.search("FIXME.*#\d+", line) == None: report_err("FIXME without issue number") + if line.find("TODO") != -1: + report_err("TODO is deprecated; use FIXME") if (line.find('\t') != -1 and fileinput.filename().find("Makefile") == -1): report_err("tab character")