Skip to content
Snippets Groups Projects
Unverified Commit 2e74e50f authored by Mike McQuaid's avatar Mike McQuaid
Browse files

rubocop/conflicts: use full name in whitelist.

parent c5b8983d
No related branches found
No related tags found
No related merge requests found
......@@ -12,13 +12,13 @@ module RuboCop
"Use `keg_only :versioned_formula` instead."
WHITELIST = %w[
bash-completion@
bash-completion@2
].freeze
def audit_formula(_node, _class_node, _parent_class_node, body)
return unless versioned_formula?
problem MSG if !@formula_name.start_with?(*WHITELIST) &&
problem MSG if !WHITELIST.include?(@formula_name) &&
method_called_ever?(body, :conflicts_with)
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment