audit: migrate VERSIONED_HEAD_SPEC_ALLOWLIST to Homebrew/core

This commit is contained in:
Rylan Polster 2020-11-05 01:26:33 -05:00
parent fe1c7c16b0
commit 6171b51a82
2 changed files with 3 additions and 9 deletions

View File

@ -742,11 +742,6 @@ module Homebrew
[user, repo]
end
VERSIONED_HEAD_SPEC_ALLOWLIST = %w[
bash-completion@2
imagemagick@6
].freeze
UNSTABLE_ALLOWLIST = {
"aalib" => "1.4rc",
"automysqlbackup" => "3.0-rc",
@ -817,9 +812,9 @@ module Homebrew
return unless @core_tap
if formula.head && @versioned_formula
head_spec_message = "Versioned formulae should not have a `HEAD` spec"
problem head_spec_message unless VERSIONED_HEAD_SPEC_ALLOWLIST.include?(formula.name)
if formula.head && @versioned_formula &&
!tap_audit_exception_list(:versioned_head_spec_allowlist).include?(formula.name)
problem "Versioned formulae should not have a `HEAD` spec"
end
stable = formula.stable

View File

@ -868,7 +868,6 @@ module Homebrew
end
include_examples "formulae exist", described_class::VERSIONED_KEG_ONLY_ALLOWLIST
include_examples "formulae exist", described_class::VERSIONED_HEAD_SPEC_ALLOWLIST
include_examples "formulae exist", described_class::PROVIDED_BY_MACOS_DEPENDS_ON_ALLOWLIST
include_examples "formulae exist", described_class::UNSTABLE_ALLOWLIST.keys
include_examples "formulae exist", described_class::GNOME_DEVEL_ALLOWLIST.keys