lib/rubocop/cop/rspec/around_block.rb in rubocop-rspec-1.33.0 vs lib/rubocop/cop/rspec/around_block.rb in rubocop-rspec-1.34.0
- old
+ new
@@ -49,11 +49,11 @@
end
private
def add_no_arg_offense(node)
- add_offense(node, location: :expression, message: MSG_NO_ARG)
+ add_offense(node, message: MSG_NO_ARG)
end
def check_for_unused_proxy(block, proxy)
name, = *proxy
@@ -61,10 +61,9 @@
return if usage.include?(s(:lvar, name))
end
add_offense(
proxy,
- location: :expression,
message: format(MSG_UNUSED_ARG, arg: name)
)
end
end
end