aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz2013-04-06 21:57:09 +0200
committerAdam Vandenberg2013-04-06 13:12:53 -0700
commit254f3b2c3c03826f828f82e684777b3aeea3dd8f (patch)
treeaada03532f625121243b3ba4c70f3925e5d7958a /Library
parent89bb6664c48c54c3ff281d5b497b8d84143f5549 (diff)
downloadbrew-254f3b2c3c03826f828f82e684777b3aeea3dd8f.tar.bz2
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>
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/audit.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb
index 62d1405e0..1504b4fe0 100644
--- a/Library/Homebrew/cmd/audit.rb
+++ b/Library/Homebrew/cmd/audit.rb
@@ -192,6 +192,10 @@ class FormulaAuditor
problem "Google Code homepage should end with a slash (url is #{f.homepage})."
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
# Check GNU urls; doesn't apply to mirrors