brew audit: find *.github.com pages
And suggest changing them to *.github.io Closes Homebrew/homebrew#19012. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
89bb6664c4
commit
254f3b2c3c
@ -192,6 +192,10 @@ class FormulaAuditor
|
|||||||
problem "Google Code homepage should end with a slash (url is #{f.homepage})."
|
problem "Google Code homepage should end with a slash (url is #{f.homepage})."
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if f.homepage =~ %r[^http://.*\.github\.com/]
|
||||||
|
problem "GitHub pages should use the github.io domain (url is #{f.homepage})"
|
||||||
|
end
|
||||||
|
|
||||||
urls = [(f.stable.url rescue nil), (f.devel.url rescue nil), (f.head.url rescue nil)].compact
|
urls = [(f.stable.url rescue nil), (f.devel.url rescue nil), (f.head.url rescue nil)].compact
|
||||||
|
|
||||||
# Check GNU urls; doesn't apply to mirrors
|
# Check GNU urls; doesn't apply to mirrors
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user