We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03e9e4f commit 159542bCopy full SHA for 159542b
src/etc/tidy.py
@@ -49,9 +49,9 @@ def do_license_check(name, contents):
49
report_err("FIXME without issue number")
50
if line.find("TODO") != -1:
51
report_err("TODO is deprecated; use FIXME")
52
- if line.find("// WARN") != -1:
53
- mo = re.match("// WARN (.*)", line)
54
- report_warn("WARN: " + mo.group(1))
+ idx = line.find("// WARN")
+ if idx != -1:
+ report_warn("WARN:" + line[idx + len("// WARN"):])
55
if (line.find('\t') != -1 and
56
fileinput.filename().find("Makefile") == -1):
57
report_err("tab character")
0 commit comments