Skip to content
Snippets Groups Projects
Commit 60f23778 authored by Xu Cheng's avatar Xu Cheng
Browse files

audit: formula version string should have digit


Closes Homebrew/homebrew#40025.

Signed-off-by: default avatarXu Cheng <xucheng@me.com>
parent 78ccd412
No related branches found
No related tags found
No related merge requests found
......@@ -350,6 +350,14 @@ class FormulaAuditor
spec.patches.select(&:external?).each { |p| audit_patch(p) }
end
%w[Stable Devel].each do |name|
next unless spec = formula.send(name.downcase)
version = spec.version
if version.to_s !~ /\d/
problem "#{name}: version (#{version}) is set to a string without a digit"
end
end
if formula.stable && formula.devel
if formula.devel.version < formula.stable.version
problem "devel version #{formula.devel.version} is older than stable version #{formula.stable.version}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment