Don't skip RuboCop on non-existent ARGV methods.

This commit is contained in:
Markus Reiter 2020-08-06 16:17:38 +02:00
parent 536c963274
commit 5d3881e1ab

View File

@ -284,9 +284,7 @@ module RuboCop
end
end
find_instance_call(body_node, "ARGV") do |method_node|
next if [:debug?, :verbose?, :value].index(method_node.method_name)
find_instance_call(body_node, "ARGV") do |_method_node|
problem "Use build instead of ARGV to check options"
end