Changed tidy script to remove restriction on FIXME and to warn against XXX instead
This commit is contained in:
parent
cc61fc0994
commit
40df08a5c2
@ -45,9 +45,8 @@ try:
|
||||
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user