Merge pull request #2245 from jonchang/head-audit

audit: reject versions starting with HEAD
This commit is contained in:
Mike McQuaid 2017-03-04 08:52:41 +00:00 committed by GitHub
commit 56ee2460f1

View File

@ -755,6 +755,9 @@ class FormulaAuditor
if version.to_s !~ /\d/
problem "#{name}: version (#{version}) is set to a string without a digit"
end
if version.to_s.start_with?("HEAD")
problem "#{name}: non-HEAD version name (#{version}) should not begin with HEAD"
end
end
if formula.stable && formula.devel