We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 69a237e commit b128cebCopy full SHA for b128ceb
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
- idx = line.find("// NOTE")
53
- if idx != -1:
54
- report_warn("NOTE" + line[idx + len("// NOTE"):])
+ match = re.match(r'^.*//\s*(NOTE.*)$', line)
+ if match:
+ report_warn(match.group(1))
55
if (line.find('\t') != -1 and
56
fileinput.filename().find("Makefile") == -1):
57
report_err("tab character")
0 commit comments