File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 0004be9ecad4ce489b84036589cb62e42ce880bb
2
+ refs/heads/master: 8f14d43206fe63752407820ccc85eebc423c69ad
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 2f46b763da2c098913884f101b6d71d69af41b49
5
5
refs/heads/try: 3d5418789064fdb463e872a4e651af1c628a3650
Original file line number Diff line number Diff line change @@ -49,9 +49,9 @@ def do_license_check(name, contents):
49
49
report_err ("FIXME without issue number" )
50
50
if line .find ("TODO" ) != - 1 :
51
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 ) )
52
+ idx = line .find ("// WARN" )
53
+ if idx != - 1 :
54
+ report_warn ("WARN:" + line [ idx + len ( "// WARN" ):] )
55
55
if (line .find ('\t ' ) != - 1 and
56
56
fileinput .filename ().find ("Makefile" ) == - 1 ):
57
57
report_err ("tab character" )
You can’t perform that action at this time.
0 commit comments