Mercurial > public > mercurial-scm > hg
comparison contrib/check-code.py @ 14709:6c7283faa967 stable
check-code: don't mark debug messages for translation
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Tue, 21 Jun 2011 15:21:57 -0500 |
parents | 48ec0763afbb |
children | b071cd58af50 |
comparison
equal
deleted
inserted
replaced
14708:8083f4d00bd1 | 14709:6c7283faa967 |
---|---|
176 (r'^[\s\(]*(open(er)?|file)\([^)]*\)', | 176 (r'^[\s\(]*(open(er)?|file)\([^)]*\)', |
177 "always assign an opened file to a variable, and close it afterwards"), | 177 "always assign an opened file to a variable, and close it afterwards"), |
178 (r'[\s\(](open|file)\([^)]*\)\.', | 178 (r'[\s\(](open|file)\([^)]*\)\.', |
179 "always assign an opened file to a variable, and close it afterwards"), | 179 "always assign an opened file to a variable, and close it afterwards"), |
180 (r'(?i)descendent', "the proper spelling is descendAnt"), | 180 (r'(?i)descendent', "the proper spelling is descendAnt"), |
181 (r'\.debug\(\_', "don't mark debug messages for translation"), | |
181 ], | 182 ], |
182 # warnings | 183 # warnings |
183 [ | 184 [ |
184 (r'.{81}', "warning: line over 80 characters"), | 185 (r'.{81}', "warning: line over 80 characters"), |
185 (r'^\s*except:$', "warning: naked except clause"), | 186 (r'^\s*except:$', "warning: naked except clause"), |