aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/dev-cmd
diff options
context:
space:
mode:
authorJCount2017-03-06 12:05:43 -0500
committerGitHub2017-03-06 12:05:43 -0500
commitbd444dda43871d5ed01aa0cf208f48744da15253 (patch)
treef3b6d29ba6b7e25c377cf6d1af90e05e8a5b76fb /Library/Homebrew/dev-cmd
parent6be4aa850a4dec026f92acaed776f2b9260457e6 (diff)
parent3db3b08d723e6ec33d62e8f09cf5b349f2f59f02 (diff)
downloadbrew-bd444dda43871d5ed01aa0cf208f48744da15253.tar.bz2
Merge pull request #2269 from JCount/audit-conflicts-whitelist-bash-completion
audit: whitelist bash-completion@* to use conflicts_with
Diffstat (limited to 'Library/Homebrew/dev-cmd')
-rw-r--r--Library/Homebrew/dev-cmd/audit.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb
index d18e3b821..457df5fc7 100644
--- a/Library/Homebrew/dev-cmd/audit.rb
+++ b/Library/Homebrew/dev-cmd/audit.rb
@@ -532,8 +532,10 @@ class FormulaAuditor
end
end
+ versioned_conflicts_whitelist = %w[node@ bash-completion@].freeze
+
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
Versioned formulae should not use `conflicts_with`.
Use `keg_only :versioned_formula` instead.