Merge pull request #1365 from MikeMcQuaid/audit-stable-url-beta

audit: check for alpha/beta/rc usage in URLs.
This commit is contained in:
Mike McQuaid 2016-10-25 08:17:40 -04:00 committed by GitHub
commit 84d1661b9a

View File

@ -637,6 +637,8 @@ class FormulaAuditor
stable = formula.stable
case stable && stable.url
when /[\d\._-](alpha|beta|rc\d)/
problem "Stable version URLs should not contain #{$1}"
when %r{download\.gnome\.org/sources}, %r{ftp\.gnome\.org/pub/GNOME/sources}i
version = Version.parse(stable.url)
if version >= Version.create("1.0")