contrib/check-code.py
branchstable
changeset 30246 b4c0f8d5edd2
parent 30245 01703a8b8a46
child 30557 cbeb54ec0481
--- a/contrib/check-code.py	Tue Nov 01 20:39:36 2016 +0900
+++ b/contrib/check-code.py	Tue Nov 01 20:39:37 2016 +0900
@@ -444,6 +444,17 @@
   ]
 ]
 
+allfilesfilters = []
+
+allfilespats = [
+  [
+    (r'(http|https)://[a-zA-Z0-9./]*selenic.com/',
+     'use mercurial-scm.org domain URL'),
+  ],
+  # warnings
+  [],
+]
+
 checks = [
     ('python', r'.*\.(py|cgi)$', r'^#!.*python', pyfilters, pypats),
     ('test script', r'(.*/)?test-[^.~]*$', '', testfilters, testpats),
@@ -456,6 +467,8 @@
     ('txt', r'.*\.txt$', '', txtfilters, txtpats),
     ('web template', r'mercurial/templates/.*\.tmpl', '',
      webtemplatefilters, webtemplatepats),
+    ('all except for .po', r'.*(?<!\.po)$', '',
+     allfilesfilters, allfilespats),
 ]
 
 def _preparepats():