lint: also catch gitlab master links

This commit is contained in:
Daniel Martí 2015-11-28 09:52:55 +01:00
parent 301302d76e
commit 41690b7508

View file

@ -55,7 +55,7 @@ http_url_shorteners = [
http_checks = https_enforcings + http_url_shorteners + [
(re.compile(r'.*github\.com/[^/]+/[^/]+\.git'),
"Appending .git is not necessary"),
(re.compile(r'(.*/blob/master/|.*raw\.github.com/[^/]*/[^/]*/master/)'),
(re.compile(r'(.*/blob/master/|.*raw\.github.com/[^/]*/[^/]*/master/|.*/raw/master/)'),
"Use /HEAD/ instead of /master/ to point at a file in the default branch"),
]