update audit error message for versioned formulae with head spec

This commit is contained in:
Dustin Rodrigues 2020-07-11 10:13:48 -04:00
parent e9c7c26e0a
commit 0cd40ca18a

View File

@ -663,7 +663,7 @@ module Homebrew
problem "Formulae in homebrew/core should not have a `devel` spec" if formula.devel problem "Formulae in homebrew/core should not have a `devel` spec" if formula.devel
if formula.head && @versioned_formula if formula.head && @versioned_formula
head_spec_message = "Formulae should not have a `HEAD` spec" head_spec_message = "Versioned formulae should not have a `HEAD` spec"
problem head_spec_message unless VERSIONED_HEAD_SPEC_ALLOWLIST.include?(formula.name) problem head_spec_message unless VERSIONED_HEAD_SPEC_ALLOWLIST.include?(formula.name)
end end