changeset 18960 | 170fc0949fb6 |
parent 18959 | 2f6418d8a4c9 |
child 19031 | 341083b02d1b |
--- a/contrib/check-code.py Mon Apr 15 01:37:23 2013 +0200 +++ b/contrib/check-code.py Mon Apr 15 01:37:23 2013 +0200 @@ -237,6 +237,15 @@ (?P=quote))""", reppython), ] +txtfilters = [] + +txtpats = [ + [ + ('\s$', 'trailing whitespace'), + ], + [] +] + cpats = [ [ (r'//', "don't use //-style comments"), @@ -292,6 +301,7 @@ inrevlogpats), ('layering violation ui in util', r'mercurial/util\.py', pyfilters, inutilpats), + ('txt', r'.*\.txt$', txtfilters, txtpats), ] class norepeatlogger(object):