lib/rubocop/cop/style/implicit_runtime_error.rb in rubocop-1.30.1 vs lib/rubocop/cop/style/implicit_runtime_error.rb in rubocop-1.31.0
- old
+ new
@@ -13,11 +13,11 @@
# raise 'Error message here'
#
# # good
# raise ArgumentError, 'Error message here'
class ImplicitRuntimeError < Base
- MSG = 'Use `%<method>s` with an explicit exception class and message,' \
- ' rather than just a message.'
+ MSG = 'Use `%<method>s` with an explicit exception class and message, ' \
+ 'rather than just a message.'
RESTRICT_ON_SEND = %i[raise fail].freeze
# @!method implicit_runtime_error_raise_or_fail(node)
def_node_matcher :implicit_runtime_error_raise_or_fail,
'(send nil? ${:raise :fail} {str dstr})'