mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 15:00:30 +03:00
lint: more versatile /HEAD warning
Now catches many more github/gitlab/bitbucket links
This commit is contained in:
parent
0f06044770
commit
ce2f4a115c
1 changed files with 2 additions and 2 deletions
|
|
@ -55,8 +55,8 @@ 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/|.*/raw/master/)'),
|
||||
"Use /HEAD/ instead of /master/ to point at a file in the default branch"),
|
||||
(re.compile(r'.*://[^/]*(github|gitlab|bitbucket|rawgit)[^/]*/([^/]+/){1,3}master'),
|
||||
"Use /HEAD instead of /master to point at a file in the default branch"),
|
||||
]
|
||||
|
||||
regex_checks = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue