Mercurial > public > mercurial-scm > hg
comparison contrib/check-code.py @ 19732:1abd45e2553a
check-code: check C patterns against .h files
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Tue, 17 Sep 2013 18:19:04 -0500 |
parents | 436a3f728375 |
children | 22a70f31e3e9 |
comparison
equal
deleted
inserted
replaced
19731:436a3f728375 | 19732:1abd45e2553a |
---|---|
324 ] | 324 ] |
325 | 325 |
326 checks = [ | 326 checks = [ |
327 ('python', r'.*\.(py|cgi)$', pyfilters, pypats), | 327 ('python', r'.*\.(py|cgi)$', pyfilters, pypats), |
328 ('test script', r'(.*/)?test-[^.~]*$', testfilters, testpats), | 328 ('test script', r'(.*/)?test-[^.~]*$', testfilters, testpats), |
329 ('c', r'.*\.c$', cfilters, cpats), | 329 ('c', r'.*\.[ch]$', cfilters, cpats), |
330 ('unified test', r'.*\.t$', utestfilters, utestpats), | 330 ('unified test', r'.*\.t$', utestfilters, utestpats), |
331 ('layering violation repo in revlog', r'mercurial/revlog\.py', pyfilters, | 331 ('layering violation repo in revlog', r'mercurial/revlog\.py', pyfilters, |
332 inrevlogpats), | 332 inrevlogpats), |
333 ('layering violation ui in util', r'mercurial/util\.py', pyfilters, | 333 ('layering violation ui in util', r'mercurial/util\.py', pyfilters, |
334 inutilpats), | 334 inutilpats), |