Merge pull request #2269 from JCount/audit-conflicts-whitelist-bash-completion
audit: whitelist bash-completion@* to use conflicts_with
This commit is contained in:
commit
bd444dda43
@ -532,8 +532,10 @@ class FormulaAuditor
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
versioned_conflicts_whitelist = %w[node@ bash-completion@].freeze
|
||||||
|
|
||||||
return unless formula.conflicts.any? && formula.versioned_formula?
|
return unless formula.conflicts.any? && formula.versioned_formula?
|
||||||
return if formula.name.start_with? "node@"
|
return if formula.name.start_with?(*versioned_conflicts_whitelist)
|
||||||
problem <<-EOS
|
problem <<-EOS
|
||||||
Versioned formulae should not use `conflicts_with`.
|
Versioned formulae should not use `conflicts_with`.
|
||||||
Use `keg_only :versioned_formula` instead.
|
Use `keg_only :versioned_formula` instead.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user