comparison contrib/check-code.py @ 18683:a343eccd5ee2

check-code: warn about line glob match with no glob character (?*/)
author Simon Heimberg <simohe@besonet.ch>
date Wed, 13 Feb 2013 21:51:47 +0100
parents 667063b22a69
children a91387a37f05
comparison
equal deleted inserted replaced
18682:408f2202bd80 18683:a343eccd5ee2
103 (uprefix + r'\s', "don't indent commands, use > for continued lines"), 103 (uprefix + r'\s', "don't indent commands, use > for continued lines"),
104 (r'^ saved backup bundle to \$TESTTMP.*\.hg$', 104 (r'^ saved backup bundle to \$TESTTMP.*\.hg$',
105 "use (glob) to match Windows paths too"), 105 "use (glob) to match Windows paths too"),
106 ], 106 ],
107 # warnings 107 # warnings
108 [] 108 [
109 (r'^ [^*?/\n]* \(glob\)$',
110 "warning: glob match with no glob character (?*/)"),
111 ]
109 ] 112 ]
110 113
111 for i in [0, 1]: 114 for i in [0, 1]:
112 for p, m in testpats[i]: 115 for p, m in testpats[i]:
113 if p.startswith(r'^'): 116 if p.startswith(r'^'):