Merge pull request #2245 from jonchang/head-audit
audit: reject versions starting with HEAD
This commit is contained in:
commit
56ee2460f1
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user