Skip to content

Commit fe77e96

Browse files
committed
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...
1 parent 78ec6fe commit fe77e96

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/etc/tidy.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ def report_err(s):
2828
if line.find("FIXME") != -1:
2929
if re.search("FIXME.*#\d+", line) == None:
3030
report_err("FIXME without issue number")
31+
if line.find("TODO") != -1:
32+
report_err("TODO is deprecated; use FIXME")
3133
if (line.find('\t') != -1 and
3234
fileinput.filename().find("Makefile") == -1):
3335
report_err("tab character")

0 commit comments

Comments
 (0)