Merge pull request #1365 from MikeMcQuaid/audit-stable-url-beta
audit: check for alpha/beta/rc usage in URLs.
This commit is contained in:
commit
84d1661b9a
@ -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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user