From 40df08a5c2cf126c3f1a17945ed9a3599b3ebadd Mon Sep 17 00:00:00 2001 From: Salem Talha Date: Sun, 26 Jan 2014 03:52:48 -0500 Subject: [PATCH] Changed tidy script to remove restriction on FIXME and to warn against XXX instead --- src/etc/tidy.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/etc/tidy.py b/src/etc/tidy.py index 3364ddcb67807..8157ffba3efed 100644 --- a/src/etc/tidy.py +++ b/src/etc/tidy.py @@ -45,9 +45,8 @@ def do_license_check(name, contents): openhook=fileinput.hook_encoded("utf-8")): if fileinput.filename().find("tidy.py") == -1: - if line.find("FIXME") != -1: - if re.search("FIXME.*#\d+", line) == None: - report_err("FIXME without issue number") + if line.find("// XXX") != -1: + report_err("XXX is no longer necessary, use FIXME") if line.find("TODO") != -1: report_err("TODO is deprecated; use FIXME") match = re.match(r'^.*//\s*(NOTE.*)$', line)