Skip to content

Commit d1b1b62

Browse files
committed
Ignore NOTEs when Travis runs make tidy
Only print NOTE warnings if the 'TRAVIS' environment variable has not been set. Addresses #21322.
1 parent a833337 commit d1b1b62

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/etc/tidy.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# option. This file may not be copied, modified, or distributed
99
# except according to those terms.
1010

11-
import sys, fileinput, subprocess, re
11+
import sys, fileinput, subprocess, re, os
1212
from licenseck import *
1313
import snapshot
1414

@@ -71,7 +71,7 @@ def do_license_check(name, contents):
7171
if match:
7272
report_err("XXX is no longer necessary, use FIXME")
7373
match = re.match(r'^.*//\s*(NOTE.*)$', line)
74-
if match:
74+
if match and "TRAVIS" not in os.environ:
7575
m = match.group(1)
7676
if "snap" in m.lower():
7777
report_warn(match.group(1))

0 commit comments

Comments
 (0)