audit: check for alpha/beta/rc usage in URLs.

Stable URLs should not use unstable versions.
This commit is contained in:
Mike McQuaid 2016-10-24 14:54:28 +01:00
parent 0c140f0970
commit b39f87e710

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")