mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
audit: migrate VERSIONED_HEAD_SPEC_ALLOWLIST to Homebrew/core
This commit is contained in:
parent
fe1c7c16b0
commit
6171b51a82
@ -742,11 +742,6 @@ module Homebrew
|
|||||||
[user, repo]
|
[user, repo]
|
||||||
end
|
end
|
||||||
|
|
||||||
VERSIONED_HEAD_SPEC_ALLOWLIST = %w[
|
|
||||||
bash-completion@2
|
|
||||||
imagemagick@6
|
|
||||||
].freeze
|
|
||||||
|
|
||||||
UNSTABLE_ALLOWLIST = {
|
UNSTABLE_ALLOWLIST = {
|
||||||
"aalib" => "1.4rc",
|
"aalib" => "1.4rc",
|
||||||
"automysqlbackup" => "3.0-rc",
|
"automysqlbackup" => "3.0-rc",
|
||||||
@ -817,9 +812,9 @@ module Homebrew
|
|||||||
|
|
||||||
return unless @core_tap
|
return unless @core_tap
|
||||||
|
|
||||||
if formula.head && @versioned_formula
|
if formula.head && @versioned_formula &&
|
||||||
head_spec_message = "Versioned formulae should not have a `HEAD` spec"
|
!tap_audit_exception_list(:versioned_head_spec_allowlist).include?(formula.name)
|
||||||
problem head_spec_message unless VERSIONED_HEAD_SPEC_ALLOWLIST.include?(formula.name)
|
problem "Versioned formulae should not have a `HEAD` spec"
|
||||||
end
|
end
|
||||||
|
|
||||||
stable = formula.stable
|
stable = formula.stable
|
||||||
|
@ -868,7 +868,6 @@ module Homebrew
|
|||||||
end
|
end
|
||||||
|
|
||||||
include_examples "formulae exist", described_class::VERSIONED_KEG_ONLY_ALLOWLIST
|
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::PROVIDED_BY_MACOS_DEPENDS_ON_ALLOWLIST
|
||||||
include_examples "formulae exist", described_class::UNSTABLE_ALLOWLIST.keys
|
include_examples "formulae exist", described_class::UNSTABLE_ALLOWLIST.keys
|
||||||
include_examples "formulae exist", described_class::GNOME_DEVEL_ALLOWLIST.keys
|
include_examples "formulae exist", described_class::GNOME_DEVEL_ALLOWLIST.keys
|
||||||
|
Loading…
x
Reference in New Issue
Block a user