Skip to content

Commit 041413b

Browse files
committed
tidy: spew less chaff
1 parent ccaf0b4 commit 041413b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/etc/tidy.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ def do_license_check(name, contents):
5252
report_err("TODO is deprecated; use FIXME")
5353
match = re.match(r'^.*//\s*(NOTE.*)$', line)
5454
if match:
55-
report_warn(match.group(1))
55+
m = match.group(1)
56+
if "snap" in m.lower():
57+
report_warn(match.group(1))
5658
match = re.match(r'^.*//\s*SNAP\s+(\w+)', line)
5759
if match:
5860
hsh = match.group(1)

0 commit comments

Comments
 (0)